I want close modal after save data
$this->dispatchBrowserEvent('closeModel');
<script>
window.addEventListener('closeModel', event => {
$("#Add_Student_Model").modal('hide');
})
</script>
But error:
Uncaught Reference Error: $ is not defined
jQueryby any chance? If so it is likely because your function is being defined beforejQueryhas loaded.