Let's assume I have a website with a dropdown box on it. there are 3 items in it;
1 - red
2 - blue
3 - green
Is there a javascript function that I could run make the selected item change to a certain item?
Psuedocode:
javascript:docu ment.form[0].element[0].select[green]
or
javascript:docu ment.form[0].element[0].select[3rdItem]
not sure if it's possible and I'm really sure these don't work, just don't know the syntax well enough to make it go. I believe the underlined portions are definitely wrong... can someone help?
1 - red
2 - blue
3 - green
Is there a javascript function that I could run make the selected item change to a certain item?
Psuedocode:
javascript:docu ment.form[0].element[0].select[green]
or
javascript:docu ment.form[0].element[0].select[3rdItem]
not sure if it's possible and I'm really sure these don't work, just don't know the syntax well enough to make it go. I believe the underlined portions are definitely wrong... can someone help?
Comment