-
Jacascript assistance..
Hey guys...
I'm seeking some assistance with a simple greasemonkey script.
This isn't all of the script but just the portion I believe I need modified. The last part of the script "if (radios>2)" it obviously detects greater then 2 radio buttons and selects the 2nd radio as a YES.
What I need is when it finds greater than 2 radials, I need it to select not just one but 3 or 4 YES radio leaving the rest as NO like it does.
Any help will be greatly appreciated. Thanks!
if(inputs[i].type=="radio")
{
if(!foundradio)
{
firstradio = i;
foundradio = true;
}
radios++;
if(inputs[i].value.toLowerCase()=="no")
{
inputs[i].checked = true;
inputs[i].click();
document.body.focus();
}
else
{
inputs[i].checked=true;
}
}
}
if (radios>2)
{
inputs[firstradio+2].checked=true;
}
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks