I want to validate a form in a bootstrap modal without using any framework. It\'s actually a simple modal with only an input text and two buttons \"Close\" and \"Send\". Th
You need to change the CSS classes of the input parent element div.form-group, not the input itself:
CSS
input
div.form-group
The HTML after the submit button click should look like this:
HTML
Name
To achieve this, alter your JavaScript code to this:
JavaScript