alwaysvaghu Posted January 10, 2006 Share Posted January 10, 2006 HiI want to know how to use onChange function in listbox of javascriptPlease help me with example....VAGHU Link to comment Share on other sites More sharing options...
aspnetguy Posted January 10, 2006 Share Posted January 10, 2006 HiI want to know how to use onChange function in listbox of javascriptPlease help me with example....VAGHU<{POST_SNAPBACK}> javascriptfunction doSomething(selBox){ alert(selBox[selBox.selectedIndex].value);} html <select onChange="doSomething(this)"><option value="1">One</option><option value="2">Two</option></select> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now