I have several issues to discuss with you:
The reasons behind these issues is: I have a booking form which a user can choose multiple rooms for a group. So each room must have it's own guest. Saying I want to make a booking of 3 rooms for my friends. So I select the check-in and check-out. Number of rooms (3). And put in my friends' detail to each form. After I submit the first room. The data has uploaded and all the fields are disabled. Then I do the same to next room by clicking a tab. As pictured below:
Further requirements:
When you receive the status 400 from ajax call, call the below statement.
$('#formID input[type=text]').attr("disabled",true);
This will disable all the input text boxes that are under the 'formId'.