|
-
Mar 26th, 2003, 04:09 PM
#1
Thread Starter
Addicted Member
-
Mar 26th, 2003, 04:21 PM
#2
Stuck in the 80s
Try this:
Code:
if (document.frmadd.SellType.value == '---') {
alert("kuku");
}
-
Mar 26th, 2003, 04:30 PM
#3
Thread Starter
Addicted Member
ya...
thats what i tried too tell, when im using the Jscript Function :
document.frmadd.SellType.options[0]=new Option('---');
to create option it creats without a value.....
and then when im cheking:
if (document.frmadd.SellType.value == '---') {
alert("kuku");
}
im checking its value and it doesnt work.....
may b someone have another solution...?
-
Mar 27th, 2003, 04:33 AM
#4
Does this work
Code:
var sel = document.frmadd.SellType;
sel.options[sel.options.length]=new Option('text','value');
-
Mar 27th, 2003, 05:08 AM
#5
Thread Starter
Addicted Member
Originally posted by DeadEyes
new Option('text','value');
[/code]
Yap, Thanks dude, if i use this way to insert to select, i can use VALUE and problem solved....!
Thanks again!
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
|