Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to implement a 2D grid of radio buttons?

What is the best way to implement a 2D grid of radio buttons so that only one option in each column and one option in each row can be selected?

like image 392
Dennis Williamson Avatar asked Nov 18 '25 21:11

Dennis Williamson


1 Answers

A 1D array of 1D arrays of radio buttons. Each row (or column) would use the normal radio button functionality, while each column (or row) would be updated by a loop called whenever an individual radio button is toggled.

like image 148
Sparr Avatar answered Nov 20 '25 09:11

Sparr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!