Writing jQuery for Wordpress
( function($) {
$(document).ready( function() {
//-------------------------------
// Your jQuery code here
//--------------------
} ); } ) ( jQuery );
Or alternatively, you can use no conflict mode, and use $j throughout your script instead of $
var $j = jQuery.noConflict();
$j(function(){
});