In many cases we want to use javascript in wordpress but whenever we paste javascript code in footer.php or header.php it doesnt work usually. All you have to do is put the same code inside this script to bypass all javascript  conflicts with the wordpress theme.


//you can now use $ as your jQuery object.
var body = $( ‘body’ );