Jump to content

how to use option value in onclick


Luqman

Recommended Posts

The select box object has a collection called options which holds objects for each option, and a property called selectedIndex. The selectedIndex property is the index of the selected option inside the options collection. The option object has a value property you can use to get the value of it.

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...