Skip to content

Commit

Permalink
Merge pull request #22 from ahmeij/master
Browse files Browse the repository at this point in the history
Inherit name attribute from original element
  • Loading branch information
prashantchaudhary committed Feb 27, 2013
2 parents 4acab09 + 6a08599 commit 2e7060f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jquery.ddslick.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
//Add classes and append ddSelectHtml & ddOptionsHtml to the container
obj.addClass('dd-container').append(ddSelectHtml).append(ddOptionsHtml);

// Inherit name attribute from original element
obj.find("input.dd-selected-value").attr("name", $(original).attr("name"))

//Get newly created ddOptions and ddSelect to manipulate
var ddSelect = obj.find('.dd-select'),
ddOptions = obj.find('.dd-options');
Expand Down

0 comments on commit 2e7060f

Please sign in to comment.