Uncaught TypeError: $ is not a function in wordpress code example
Example 1: uncaught TypeError: $ is not a function
(function( $ ) {
"use strict";
$(function() {
//Your code here
});
}(jQuery));
Example 2: uncaught TypeError: $ is not a function
(function($){
$(document).ready(function(){
// write code here
});
// or also you can write jquery code like this
jQuery(document).ready(function(){
// write code here
});
})(jQuery);