html - Form inside a table -


i'm including forms inside html table add new rows , update current rows. problem i'm getting when inspect forms in dev tools, see form elements closed after opening (inputs, etc not included within form).

as such, submitting form fails include fields.

the table row , inputs follows:

<tr>     <form method="post" action="">         <td>             <input type="text" name="job_num">         </td>          <td>             <input type="text" name="desc">         </td>     </form> </tr> 

any great, thank you.

a form not allowed child element of table, tbody or tr. attempting put 1 there tend cause browser move form appears after table (while leaving contents — table rows, table cells, inputs, etc — behind).

you can have entire table inside form. can have form inside table cell. cannot have part of table inside form.

use 1 form around entire table. either use clicked submit button determine row process (to quick) or process every row (allowing bulk updates).


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -