Thursday, 15 March 2012

javascript - prop("selected",true) not working in Safari -



javascript - prop("selected",true) not working in Safari -

does know why in safari not working?

$('#my_dropdown') .find('option') .filter(function(index) { homecoming $(this).text() === $('#country_of_residence').html(); }).prop("selected", true);

where in chrome , firefox does. alternative selected (as there atrribute selected="selected" visible), dropdown not updated. using safari 7.0.4.

javascript safari prop

No comments:

Post a Comment