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!

index

Status
Not open for further replies.

LeoLionHeart

Programmer
Apr 4, 2006
45
GB
Need the selected index of my select box to equal 1. this doesn't work

Code:
<SELECT name=Department onChange="document.form(0).department.selectedIndex=1">
 
this should really be asked in the javascript forum

but here's the answer nonetheless:

Code:
<select name="Department" onchange="[!]this[/!].selectedIndex=1">

-kaht

[small]How spicy would you like your chang sauce? Oh man... I have no idea what's goin' on right now...[/small]
[banghead]
 
how do i insert a row at position 0 which says "select"?

You thoughts would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top