|
-
Nov 15th, 2002, 02:45 PM
#1
Thread Starter
Fanatic Member
cel.options[1].selected=true; in netscape?
I am having problems with this instruction in netscape
cel.options[1].selected=true;
where cel is a dropdown with many items in it... why!?!
"The difference between mad and genius is the success"
-
Nov 15th, 2002, 02:53 PM
#2
Thread Starter
Fanatic Member
how can I select an item from a dropdown with javascript that is valid in netscape...??!?!
"The difference between mad and genius is the success"
-
Nov 16th, 2002, 07:06 AM
#3
Frenzied Member
Which version of NS are you talking about? This works in 6.2:
Code:
<form id="form1" action="#">
<select id="select1">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
<input type="button" value="Select"
onclick="document.forms['form1'].select1.options[3].selected = true;" />
</form>
-
Nov 16th, 2002, 06:04 PM
#4
Good Ol' Platypus
Re: cel.options[1].selected=true; in netscape?
Originally posted by Andreex
I am having problems ... in netscape
Buddy, give us a ring if you ever DON'T have problems. 
But the real reason I posted... I heard its better to use NAME in NS... not sure where I heard it though, probably wrong
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 18th, 2002, 10:46 AM
#5
Thread Starter
Fanatic Member
haha... I know Netscape is a pain.... but I will try the code Rick Bull posted to see if it works
"The difference between mad and genius is the success"
-
Nov 19th, 2002, 06:51 AM
#6
Frenzied Member
Version 6+ of NS are usually a lot better than IE for doing things with (for example) CSS that would otherwise take ages doing with JavaScript in IE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|