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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with drop down menus

Status
Not open for further replies.

Rupa

Programmer
Jun 7, 2002
19
US
I am trying to make a drop down menu that has both a part number and a description of the part number but only displays the part number in the box when something is selected. For example:

PN# 0001 | Copper Cable Sheild

would be displayed when the menu is viewed but when it is actually selected only PN# 0001 is displayed. Right now I have PN#0001 as the choice and Cooper Cable Shield as the value. (I sort of need to keep it that way because I'm using document.form.fieldName.value to access the value in JavaScript.)

Help!

Thanks!

 
Hi,

Actually, that doesn't work for what I need because I don't want the " | Copper Cable Shield" to appear in the drop down box once the part number is selected. I only want the PN# 0001 to appear. Also, I need the "Copper Cable Shield" to be the value because I use that as a value elsewhere in the page. Any other suggestions? (I also have a thread on this subject in the Javascript listings....same name as this one)...if you need more info about what I'm looking for.

Thanks!
 
Rupa, I just posted the script in the Javascript forum... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top