i wanted to know difference between both.
(function($){ //some console.log code }); $(document).ready(function() { //some console.log code }); You guys might call me stupid but i don't know why its happening.
well here is problem.
When i use (function($){ then i can't see any result in console.log but it's showing all console debug result when i use document.ready.
I am using jQuery v1.8.2.
Thanks.