JS требует jQuery
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
Disgusted Dotterel
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>