[Greasemonkey] Drop down box

rejectpenguin rejectpenguin at gmail.com
Fri Sep 22 12:52:05 EDT 2006


awesome man.. That works great. Thanks alot!

WillBo wrote:
> 
> Something like this should work. Assuming you always want to change a 
> KNOWN specific array element. (here shown as "1")
> 
> form = document.forms.namedItem ("theformname");
> selbox = form.elements.namedItem ("month");
> selbox[1].value = "newvalue";
> 
> If the form isn't named or ID'd, then maybe?:
> 
> form = document.forms[0];
> 
> 
> rejectpenguin wrote:
>> Is it possible to refrence a drop down box on a page that is in a
>> javascript
>> form and change one of the values that you can select?
>>
>> The form is post and field name is month.
>>   
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
> 
> 

-- 
View this message in context: http://www.nabble.com/Drop-down-box-tf2309390.html#a6452969
Sent from the MozDev - greasemonkey mailing list archive at Nabble.com.



More information about the Greasemonkey mailing list