schilly Posted June 4, 2009 Share Posted June 4, 2009 Is this possible? What is the best way to go about doing this? Would I have to find the current selected option, remove the selected attribute then set the option I want selected? Thanks. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted June 4, 2009 Share Posted June 4, 2009 Just select the one you want selected. HTML will DTRT by un-selecting whatever is selected to the one you/the code selected. Quote Link to comment Share on other sites More sharing options...
schilly Posted June 4, 2009 Author Share Posted June 4, 2009 ok found the answer here. http://stackoverflow.com/questions/149573/check-if-option-is-selected-with-jquery-if-not-select-a-default $("#mySelect option[value=3]").attr('selected', 'selected'); thx. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.