$ is not a function jQuery
If you are trying to add your own jQuery code to WordPress
and seeing an error “$ is not a function” in Firebug,
If you code is looking like this:
Then you need to change all '$' sign to jQuery.
Then add line
before your normal code
Here you can find the complete documentation about jquery.noConflict();
and seeing an error “$ is not a function” in Firebug,
If you code is looking like this:
$(document).ready(function(){
$("#list").dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
Then you need to change all '$' sign to jQuery.
Then add line
jquery.noConflict();
before your normal code
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('#list').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
});
});
Here you can find the complete documentation about jquery.noConflict();
0 comments:
Post a Comment