Jump to content

Is There A Selectedindexchanged Even In Javascript


Recommended Posts

<select name="blah" id="myselect" onchange="func()">or in the script itself (best practice):document.getElementById("myselect").onchange = func;Assignments like this generally are embedded in a window.onload handler, to ensure that the page element exists when you try to get a reference to it. (The DOM is constructed serially.)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...