in this image you can understand what exactly im trying to do
how to create two dimensional radio buttons choice should to unique vertically and horizontally.
checked unchecked
unchecked unchecked
unchecked checked
checked checked wrong
how to create two dimensional radio button in html css js .
2
Answers
As a start – I would create a data structure with all your data (array? object with array?), nested data (arrays of options for the radio button?), and so on. Then I would build my html as a JavaScript string element, and finally I would use something like
at least you would get systematic code reusability, and you would clarify your question.
To create a two-dimensional radio button using HTML, CSS, and JavaScript, you can follow these steps: