반응형
[출처] http://stackoverflow.com/questions/5967564/form-inside-a-table
A form is not allowed to be a child element of a table, tbody or tr.
You can have an entire table inside a form. You can have a form inside a table cell. You cannot have part of a table inside a form.
Use one form around the entire table. Then either use the clicked submit button to determine which row to process (to be quick) or process every row (allowing bulk updates).
Use the "form" attribute, if you want to save your markup:
<form method="GET" id="my_form"></form>
<table>
<tr>
<td>
<input type="text" name="company" form="my_form"></td>
<button type="button" form="my_form">ok</button>
</td>
</tr>
</table>
Note, this solution is only valid with HTML5. – threenplusone
moreover, it won't work in internet explorer more info here – Souhaieb Besbes
반응형
'개발일지 > 2015' 카테고리의 다른 글
[jQuery] Hide pager if bxslider has only 1 slide (0) | 2015.12.07 |
---|---|
[Dev] mmt-donut-chart.js 개발일지 (0) | 2015.11.05 |
[CSS] ripple click effect (0) | 2015.11.03 |
[오픈소스] Apache, GNU, MIT 라이선스 (0) | 2015.10.26 |
[jQuery] Count-up Advanced Code (0) | 2015.10.22 |