Skip to content

Instantly share code, notes, and snippets.

@nixon1333
Created August 24, 2014 05:58
Show Gist options
  • Save nixon1333/57e3e1edf757d551f53d to your computer and use it in GitHub Desktop.
Save nixon1333/57e3e1edf757d551f53d to your computer and use it in GitHub Desktop.
Select ddslick option by value or text
$('#currencySelectBox li').each(function( index ) {
var currs = $( this ).find('.dd-option-value').val();
if(currs == storeCur)
{
$('#currencySelectBox').ddslick('select', {index: $(this).index()});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment