You can pass $ in function()
jQuery(document).ready(function($){
// jQuery code is in here
});
or you can replace $(document);
with this jQuery(document);
or you can use jQuery.noConflict()
var jq=jQuery.noConflict();
jq(document).ready(function(){
jq('selector').show();
});