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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -