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.

[code]

<script>
jQuery(document).ready(function($){
//you can now use $ as your jQuery object.
var body = $( ‘body’ );
});
</script>

[/code]