I am testing my webpage on a server using preview dns. Just realized that preview dns automatically adds mootools library towards the end of any php page. Probably for thei
Insert the following before any jquery code:
$j = jQuery.noConflict(true);
Now you can use $j instead of $ for any jquery stuff you want to do. i.e.:
$j("body")