html - Label whole column for radio-buttons in table -
I have an HTML table with multiple rows and columns and a radio button in each column I select the radio button in that column I want to make it possible to click in the Any row in the table. I know that it can be completed with a label-tag using javascript or some kind of CSS3.
But do I know if any pure HTML-path do this? Do not use javascript or CSS without adding a label tag for each cell in the table.
Because the table is like 15 rows and 10 columns, it does not seem to have the right to add 150 label-tags, and it would not be good to rely on javascript or CSS3, which is supported in all browsers or Can not be active.
I've read about colgroup- and col-tags in HTML, but it does not seem that they can add HTML such as label tags for all the cells in one column.
You should be able to add this feature with javascript. Entire & lt; Tr & gt; Add a click event to in which you toggle the form field I recommend using jQuery because it will (1) make this task easy to be lost, and (2) your solution is different Will give the possibility of working in browsers; Edition.
Comments
Post a Comment