Jump to content

Add option to html select dropdown


samerhannoun

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...