jquery document.ready multiple declaration
- by Hendry H.
I realized that I can specify $(document).ready(function(){}); more than once.
Suppose like this
$(document).ready(function(){
var abc = "1122";
//do something..
});
$(document).ready(function(){
var abc = "def";
//do something..
});
Is this standard ?
Those codes work on my FF (16.0.2). I just a little afraid that other browser may not.
What actually happen ? How jQuery handle those code ?
Thanks.