Skip to content

Instantly share code, notes, and snippets.

@mrbrdo
Created July 16, 2011 01:19
Show Gist options
  • Save mrbrdo/1085880 to your computer and use it in GitHub Desktop.
Save mrbrdo/1085880 to your computer and use it in GitHub Desktop.
function testc()
{
var elem = $("td.n-Ja-e-A div[role=button]");
/*elem.mouseenter();
elem.mouseover();
elem.mousemove();
elem.addClass("tk3N6e-e-La");
elem.click();*/
var i = 0;
for (i=0; i<1000; i++)
{
if (elem[0] == undefined || elem[0] == null) break;
var j = i;
elem.click(function() {
alert(j);
});
elem = elem.parent();
}
alert(i);
elem.html("lala");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment