Skip to content

Instantly share code, notes, and snippets.

@jasonyingling
Created February 12, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonyingling/191b19368e6f069f6263 to your computer and use it in GitHub Desktop.
Save jasonyingling/191b19368e6f069f6263 to your computer and use it in GitHub Desktop.
ddSlick for Gravity Forms Drop Downs
$('.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