I have to build some kind of multi direction table from the below design image:

r/webdev - Suggestions on developing a multi directional selection table?

How would you guys build it? Are there some kind of proven implementations how to best achieve this?

Or is it just straight out of the book a table with multiple checkboxes, e.g.

<table>
  <tr>
    <td></td>
    <td>item 1</td>
    <td>item 2</td>
    <td>item 3</td>
  </tr>
  <tr>
    <td>0</td>
    <td><input type="checkbox" name="item1" value="0" /></td>
    <td><input type="checkbox" name="item2" value="0" /></td>
    <td><input type="checkbox" name="item3" value="0" /></td>
  </tr>
  <tr>
    <td>1</td>
    <td><input type="checkbox" name="item1" value="1" /></td>
    <td><input type="checkbox" name="item2" value="1" /></td>
    <td><input type="checkbox" name="item3" value="1" /></td>
  </tr>
  <tr>
    <td>2</td>
    <td><input type="checkbox" name="item1" value="2" /></td>
    <td><input type="checkbox" name="item2" value="2" /></td>
    <td><input type="checkbox" name="item3" value="2" /></td>
  </tr>
</table>



Source link

Write A Comment