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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -