Jump to content

Select Element Doubt


karthiseenu

Recommended Posts

Hai friends,    I want to make the combobox as editable is there any way to do this

You want to change the options text/value?document.getElementById('cars').options[0].text="ford";cars is the name of the select box and 0 is the first item.to change the values as well as text just use .value="ford" :)
Link to comment
Share on other sites

No it should be like a text box i wants that type of editing

create the textbox then access it contents and put it in the dropdownval = document.getElementById('txtbox').value;document.getElementById('cars').options[0].text=val;txtbox = the id of the textbox :)
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...