Suppose inputs are getting generated dynamically as listed below
<input type="text" name="room[0][0]">
<input type="text" name="room[0][1]">
<input type="text" name="room[0][2]">
<input type="text" name="room[0][3]">
<input type="text" name="room[1][0]">
<input type="text" name="room[1][1]">
<input type="text" name="room[1][2]">
<input type="text" name="room[1][3]">
On submit, I want to check that all inputs have value using jQuery
, otherwise it should be focused to that input and it should show required
Message.
NOTE: There can be hundreds of input types and don't want to give class to prevent dom element size