I have a form in which I have 30 input boxes and 10 text areas and 3 select boxes (updated) field and all are mandatory fields.
How do I apply validation through jQuery /javascript together for all input fields that it can't be blank/empty/NULL.
I don’t want to use each time each input box’s ID and create a separate validation for each input box and text area.
If any input field is blank then it’s border become red and when a use going to write something then become normal( no border i.e. remove that class)
UPDATE:
There are also select boxes ..how do I validate them together?
textarea, and list box field.
elements that contain at least 1
non-whitespace character – \S+
border to the remaining elements
javascript
css