robert_gsfame Posted April 24, 2010 Share Posted April 24, 2010 how can i go back to the first index of a combobox after alert("Please choose at least one checkbox") it's like focus() in textbox.. thx in advance! Quote Link to comment Share on other sites More sharing options...
andrewgauger Posted April 24, 2010 Share Posted April 24, 2010 document.getElementById("select_id").options[0].selected=true will set the first option. and document.getElementById("select_id").focus() should work for setting focus Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 24, 2010 Author Share Posted April 24, 2010 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.