Skip to content

Instantly share code, notes, and snippets.

@aweimeow
Created December 26, 2014 15:34
Show Gist options
  • Save aweimeow/4c8a68d07ff33eb53938 to your computer and use it in GitHub Desktop.
Save aweimeow/4c8a68d07ff33eb53938 to your computer and use it in GitHub Desktop.
var arr=[0,2,4,9,18,22,27,32,39,42];
var count=0;
var a = document.querySelectorAll("input[type=radio]");
var send = document.querySelectorAll("input[type=submit]");
for(var i = 0; i<a.length; i++)
{
if(i==arr[count])
{
a[i].click();
count++;
}
}
send[0].click();
var send = document.querySelectorAll("input[type=submit]");
var b = document.querySelectorAll("input[type=radio]");
for(var i = 0; i<b.length; i+=5)
{
b[i].click();
}
send[1].click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment