I looked up online how to determine if a modal form is open on Bootstrap, so I wrote the following line of code:
console.log($("attributesModal").hasClass('in'));
which provides me with the following error: Uncaught ReferenceError: $ is not definedsubmitIncidentReport @ main.js:228(anonymous function) @ main.js:299
I want to determine which form is entered to run a block of code to insert data in the database based on the open modal form.