greasemonkey script to select radio button
- by muqtar
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