Forum Moderators: open

Message Too Old, No Replies

Screwed my pull down list up...

argh... please help me quickly!

         

wonderboy

5:02 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



Hi,

I just realised that in trying to get two pull down lists working I made the original stop working, I have deleted the additinal one, but because of changes I made (I have now forgotton what these were) the pull down list just gives an "error on page" in status bar when an option is selected.

The entire code is:

<select name="select5"
OnChange="location.href=jump.myjumpbox.options[selectedIndex].value" style="font-family: Verdana; font-size: 10px; border-style: solid; border-width: 1; padding: 0" size="1">
<option selected>List of contents
<option value="se.php">selection 1
<option value="se1.php">selection 2
</select>

Many thanks for your help, the problem may be VERY small!

W.

txbakers

5:31 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the onChange event you reference an element that no longer exists.

select name="select5"
OnChange="location.href=jump.myjumpbox.options[selectedIndex].value

your select name is "select5" not "myjumpbox"

keyplyr

9:11 am on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




And it's recommended to close your <option> tags, or some browsers won't even display the drop-down at all (NN4.7)

<option selected>List of contents[b]</option>[/b]
<option value="se.php">selection 1[b]</option>[/b]
<option value="se1.php">selection 2[b]</option>[/b]

wonderboy

10:51 am on Mar 31, 2004 (gmt 0)

10+ Year Member



Thanks guys, got it sorted! Will take that NN thing into account. Why can't there just be one browser that everyone likes / uses =(