samerhannoun Posted August 14, 2011 Share Posted August 14, 2011 HI GuysHow are you???my problem in brief that I have select (drop down) box and I want to add a new option using Jquery and let this new option the first option,I do the following $('#edit-display-section').prepend('<option selected = "selected" value="0">MYTEXT</option>');this works fine with Firefox and Google Chrome but in IE not working, what happened that the new option added to first of the select box but IE will show you the previous option.So any help for that??Best Wishes Link to comment Share on other sites More sharing options...
Ingolme Posted August 15, 2011 Share Posted August 15, 2011 You probably have to go through all the other option elements and set their "selected" property to false before doing that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.