jquery in firebug throws always NULL -


i learning how use firebug properly. watched howto , author typed $('p'); in console , displayed p tags. in case there many p tags on site (my local drupal 7 site) shows null. other tags i've tried. have put $ in front , kinda works?! did wrong other way did not work?

the previous example didn't because not returning or printing anything. try this:

(function($) {    console.log('this works');    return $('p'); })(jquery); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -