greasemonkey code modification
- by muqtar
Hi,all..
A user has helped me find hidden values in a page and display it using alert. If there are radio buttons and one of them is related to this value,is there a way to select the radio button automatically rathar than displaying the value in alert box.. Thanks...
the code is as follows:
var inputs = document.getElementsByTagName('input');
for (i=0; i<inputs.length; i++) {
if (inputs[i].getAttribute("name") == "ans") {
alert(inputs[i].getAttribute("value"));
}
}
this "value" must be selected in the radio button rathar than alerting...