반응형
[출처] 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
반응형
'개발일지' 카테고리의 다른 글
[디자인] UI/UX 참고 사이트 - Muzli Design Inspiration (0) | 2016.03.10 |
---|---|
[HTML] Unmasking HTML Emails (0) | 2016.01.05 |
[HTML] Redirect Code (0) | 2015.07.03 |
[HTML] 취소선 태그 <s>,<del>,<strike> (0) | 2015.06.01 |
[visualgo.net] 영상을 통한 자료구조와 알고리즘의 시각화 (한국어판) (0) | 2015.01.08 |