【发布时间】:2017-03-17 22:44:39
【问题描述】:
//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.
<form action="submit.php" method="POST">
<tbody>
<tr id='addr0' data-id="0" class="hidden">
<td data-name="loannum">
<input type="number" class="form-control" required>
</td>
<td data-name="name">
<input id="startdate" name="startdate" min="2016-01-01" max="2020-01-01" type="date" class="form-control">
</td>
<td data-name="name">
<input type="text" name='gname' placeholder='Group Name' class="form-control" pattern="([A-z\s]){2,}" required/>
</td>
<td data-name="desc">
<input type="number" placeholder='Batch Number' class="form-control" pattern="[0-9]{9}" required>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<a id="add_row" class="btn btn-primary" style="background:#84ca71;color:#F44336;padding-bottom:24px;">Add Group</a>
//here we mentioned a button and when we click on it the action given in form should be performed
<button class="btn btn-default" type="submit" style="background:#cddc39;color:#F44336;padding:5px 30px 25px 20px;">submit</button>
</form>
【问题讨论】:
-
你的按钮在哪里?
-
你忘记添加按钮和
</form> -
添加组offo 我忘了链接那个代码。所以这里是按钮代码。