Luqman Posted February 8, 2014 Share Posted February 8, 2014 how to use the option value in javascript, for example when on select Volvo and it will automatically appear in the input price is $ 1,500 bertype name is read only Link to comment Share on other sites More sharing options...
justsomeguy Posted February 10, 2014 Share Posted February 10, 2014 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 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