title: why my action attribute is not working in the below code
body: <pre><code>    //Here i have mentioned one form and gave action in that.I also gave a button submit.Now when I click on the submit button, It the action given in the form is not perfoming.
  
  
  
  &lt;form action="submit.php" method="POST"&gt;
              &lt;tbody&gt;
                  &lt;tr id='addr0' data-id="0" class="hidden"&gt;
                  &lt;td data-name="loannum"&gt;
                    &lt;input type="number" class="form-control" required&gt;
                  &lt;/td&gt;
                  &lt;td data-name="name"&gt;
                    &lt;input id="startdate" name="startdate" min="2016-01-01" max="2020-01-01" type="date" class="form-control"&gt;
                  &lt;/td&gt;
                  &lt;td data-name="name"&gt;
                      &lt;input type="text" name='gname' placeholder='Group Name' class="form-control"  pattern="([A-z\s]){2,}" required/&gt;
                  &lt;/td&gt;
                  &lt;td data-name="desc"&gt;
                      &lt;input type="number" placeholder='Batch Number' class="form-control" pattern="[0-9]{9}" required&gt;
                  &lt;/td&gt;   
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  &lt;/div&gt;
      &lt;a id="add_row" class="btn btn-primary" style="background:#84ca71;color:#F44336;padding-bottom:24px;"&gt;Add Group&lt;/a&gt;
  //here we mentioned a button and when we click on it the action given in form should be performed
      &lt;button class="btn btn-default" type="submit"  style="background:#cddc39;color:#F44336;padding:5px 30px 25px 20px;"&gt;submit&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>