I have a form in a modal with some required fields, but when I hit submit the form just reloads and I don\'t get any message for validation that I am using for submitting th
You don't have to add any script for validating form text fields if you added the required attribute.
Try this
or