[Greasemonkey] Drop down box

Johan Sundström oyasumi at gmail.com
Fri Sep 22 05:13:17 EDT 2006


On 9/21/06, Matthew Weymar <matthew.weymar at gmail.com> wrote:
> Seems like it'd be easy enough to change this to:
>
> <select id="searchtype" name="type">
>         <option value="user" selected="selected">your bookmarks</option>
>         <option value="all" >del.icio.us</option>
>         <option value="web" >the web</option>
> </select>

Probably something like document.getElementById('searchtype').selectedIndex = 0;

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/


More information about the Greasemonkey mailing list