Hi.
This isn't a crucial piece of knowledge for me, but I would still like to know what exactly is happening here.
This is a .NET 3.5 Web Forms application. One of the pages has 3 server-side inputs with type 'submit'. Each one of these inputs has the following JavaScript handlers assigned to them with jQuery:
$('.button').mouseover(function() {
$(this).addClass('hoverEffect');
});
$('.button').mouseout(function() {
$(this).removeClass('hoverEffect');
});
When I run the following script (yes, this is IE specific)
$(document).ready(function() {
d = window.open();
d.document.open('text/plain').write(document.documentElement.outerHTML);
});
on the page, I get the following mark-up for the buttons:
<INPUT class=button id=ctl00_CloseButton onclick=window.close(); type=submit
value=Close name=ctl00$CloseButton jQuery1287434381268="2">
The question is, what exactly is this jQuery1287434381268="2"?
These values go from 2 to 4. So, the first button is 2, second is 3 and third is 4. The 1287434381268 number is different every time I reload the page. I know it's got everything to do with the 2 JavaScript handlers, because if I remove them the attribute is no longer there. Is this some way how IE handles jQuery assigned handlers? If I do plain View->Source in IE, this stuff doesn't come up as it doesn't in FF Page Source or FireBug.
EDIT: I just ran that start-up script on a different page, which has tons of JavaScript handlers all assigned with jQuery. This attribute is present on every element that has a handler.