I want to use click function in Wordpress single.php
for that, I have used below code
<div class="wrapper clearfix">
<a href="#" id="mobile-menu-toggle" class="lines-button">
<span class="lines"></span>
</a>
</div>
$(document).ready(function(){
$('.clearfix a').click(function(){
alert();
});
});
and when I use this code I have received the error Uncaught TypeError: $(...).MagicLiquidizerTable is not a function
I have searched for this error and I have got this and this code.
and as this question, I have tried
jQuerydocument).ready(function($){
$('.clearfix a').click(function(){
alert();
});
});
and with
$.noConflict();
jQuery(function ($) {
console.log($);
});
console.log($);
I have tried that both but it is still not working and got again this error Uncaught TypeError: $(...).MagicLiquidizerTable is not a function
.
can anybody help me with this