1
My doubt is about a modal code that I have modified for 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 that’s the part of js that I put before the tag closed :
<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 modify but this not advancing much, you know what can be?
You need to add the
jquery
on the page– Denis Rudnei de Souza