debugging - jquery document ready issue -
debugging - jquery document ready issue -
i wanted know difference between both.
(function($){ //some console.log code });
$(document).ready(function() { //some console.log code });
you guys might phone call me stupid don't know why happening.
well here problem.
when utilize (function($){
can't see result in console.log
it's showing console debug
result when utilize document.ready
.
i using jquery v1.8.2
.
thanks.
you missed @ closing in first example:
(function($){ //some console.log code })(jquery); // <----------add (jquery) here , test
or this:
jquery(function($){ // <---------add jquery first here //some console.log code });
jquery debugging document-ready
Comments
Post a Comment