83525

Why do form element can not be child of table,tr,td?

Question:

I was in situation where i need to use forms in a table row, but surprisingly I could see that form element can not be child of table,td,tr. Is there any logical reason for this restriction, or is there any work around for this ?

Answer1:

It could be in a td, but a table should only contain tr (or thead, tbody, tfoot). tr should only contain td. So it's not the form element that cannot be in the table, it is the table that doesn't allow most elements, except some specific ones.

Recommend

  • Write to the client returns EWOULDBLOCK when server is slow
  • Relationship between vectors and matrices in R? [closed]
  • Calling a JS function from HTML IFRAME (both web resources)
  • Getters and Setters in Eclipse for Hungarian Style Members
  • Sum and Average of a series of numbers inputed to a text field
  • Spring MVC redirect with custom http headers
  • Copying rows in a database when rows have children
  • Passing information to server-side function in a Google Docs Add On
  • Feature detection of foreignObject in SVG
  • Why does the font in these TD elements render at different sizes?
  • garbled css name when styling within UiBinder
  • Why doesnt this Java loop in a thread work?
  • How to open html table in xls on click of a button
  • how to get username into sql trigger when multiple users signed on from asp membership
  • how to upload multiple files in c# windows application
  • C: Incompatible pointer type initializing
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • How to handle images sent by a mobile device?
  • Custom validator control occupying space even though display set to dynamic
  • MVC3 Razor - ListBox pre-select not working
  • Read a local file using javascript
  • Xamarin Forms - UWP Fonts
  • JavaScriptCore crash on iOS9
  • Submit form in a displaytag pagination
  • Weird JavaScript statement, what does it mean?
  • jQuery tmpl and DataLink beta
  • Delete MySQLi record without showing the id in the URL
  • SVN: Merging two branches together
  • Unanticipated behavior
  • Transpose CSV data with awk (pivot transformation)
  • Comma separated Values
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to delete a row from a dynamic generate table using jquery?
  • SQL merge duplicate rows and join values that are different
  • Proper way to use connect-multiparty with express.js?
  • How to set the response of a form post action to a iframe source?
  • Trying to get generic when generic is not available
  • Can't mass-assign protected attributes when import data from csv file
  • Django query for large number of relationships
  • Unable to use reactive element in my shiny app