$ _POST无法使用输入标记中的必需项

I have a form that works flawlessly until I add the required attribute to the input tag. Then the form doesn't post. I'm not sure where in the form the required attribute is breaking the $_POST function but once broken all required attributes have to be removed. Has anyone experienced this behavior?

The ONLY thing that comes to mind is I have about 17 <div> with display:none set. Using Javascript, when a selection is made from a drop-down <select> tag the JavaScript changes the display to display:block as each <div> has unique set of <input> and <select> tags based on the building type selected. All of this is inside the <form> </form> tags.

There's nothing special about the <input> tags. Only when I add the required attribute to the <input> tags inside a <div> does it have a problem.

A typical <input> tag looks like this:

   <input name="total_meters" type="number" id="total_meters" tabindex="20" size="40" min="1" max="99999999999" value="2" />

The required attribute is going between <input and name.

I'm asking here before I code my own validation routines.

  1. Use jQuery function to add attribute "required" to the require input tag or
  2. Make multiple form tag and multiple summit button for each div tag and adding attribute "required" into input tag.