I want set a dropdown(select) to be change based on the value of the entries.
I have
Plea
This code worked for me:
$(function() { $('[id=mycolors] option').filter(function() { return ($(this).text() == 'Green'); //To select Green }).prop('selected', true); });
With this HTML select list:
Red Green Blue