Created
February 12, 2015 19:43
-
-
Save jasonyingling/191b19368e6f069f6263 to your computer and use it in GitHub Desktop.
ddSlick for Gravity Forms Drop Downs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.gfield select').each(function(e) { | |
var selectID = $(this).attr('id'); | |
var selectName = $(this).attr('name'); | |
$('#'+selectID).ddslick({ | |
width: '100%', | |
background: '#ffffff', | |
onSelected: function(data){ | |
$('#'+selectID+' .dd-selected-value').attr('name', selectName); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment