Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling a dropdown/combobox from a seperate button 1

Status
Not open for further replies.

dionysus74075

Technical User
Jun 3, 2005
11
US
I have a contact page setup with text fields and a dropdown to select the type of contact. I have a submit button and a clear button. I have the clear button set to clear the text fields and I also want it to set the drop down back to the label/value "Please Select." Is this possible?

Here's what I have as of now :

//Set "Clear Form" Button to clear text fields
btnClear.onRelease = function(){
ccbType.selectedItem.label = "Please Select"
}
 
just see what the index number is and call that

btnClear.onRelease = function(){
ccbType.setSelectedIndex(0);
}

assumes its the first value in the list
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top