greasemonkey script to select radio button

Posted by muqtar on Stack Overflow See other posts from Stack Overflow or by muqtar
Published on 2010-06-06T07:12:43Z Indexed on 2010/06/06 7:22 UTC
Read the original article Hit count: 400

Filed under:
|

Hi all, i'm new here. i've a question related to greasemonkey.

A page contain multiple radio buttoned values and one choice is to made, this correct choice option is hidden within the page

the radio buttons are present in the form whose structure is

<form name="bloogs" action="/myaddres.php" id="bloogs" method="post" >

then the hidden field as

<input type=hidden value="abcd" name="ans">

then all the radio button values are followed as

<input  type="radio" id="r1" name="opt" value="abcd"> abcd
<input  type="radio" id="r1" name="opt" value="efgh"> efgh
<input  type="radio" id="r1" name="opt" value="ijkl"> ijkl

and so on

thus i need the button with value=abcd be selected as soon as the page loads. Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about greasemonkey