My question is about a modal code that I modified but the error js and modal does not open
This is the html part:
<div class="page-wrapper">
<a class="btn trigger" href="javascript:;">Click Me!</a>
</div>
<div class="modal-wrapper">
<div class="modal">
<div class="head">
<a class="btn-close trigger" href="javascript:;"></a>
</div>
<div class="content">
</div>
</div>
</div>
and this is the part of js that I put before tag closing:
<script type="text/javascript">
$(document).ready(function() { //erro nessa linha "Uncaught ReferenceError: $ is not defined"
$('.trigger').click(function() {
$('.modal-wrapper').toggleClass('open');
$('.page-wrapper').toggleClass('blur');
return false;
});
});
</script>
I tried to change but it is not working well, do you know what it can be?