What means the $ without brackets?
What means the $ without brackets?
Chrom
Posts: 44Questions: 15Answers: 1
I am trying to include the datesorter plugin in my wordpress. I loaded the files in the right order but I am struggling with the syntax.
$(document).ready(function() {
$.fn.dataTable.moment( 'HH:mm MMM D, YY' );
$.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
$('#example').DataTable();
} );
What means $ without brackets? Worpress doesn't accecpt $(), so I have to write jQuery. . But I am struggling with $ without brackets. The code like that throws an error. And changing it with jQuery. also does not work.
Answers
Here is a SO thread discussing
$.
.What are the errors?
Kevin
ahhhh. sorry. I was too unconcentrated yesterday. I finally realized that I had to call it not in the jQuery.dataTable function.
then I realized the js files were something like in wrong order or not uploaded to the right folder.
Then replacing $ with jQuery worked.