N x N matrix using Jquery
Hello,
i am new to jquery. i wanted to create a n x n table where each cell contains a checkbox. the logic that i want to implement is like a matrix. consider the following example of 3 x 3 matrix for understanding.
(0,0),(0,1),(0,2)
(1,0),(1,1),(1,2)
(2,0),(2,1),(2,2)
so there are 9 cells in this example and each will contain a checkbox, if a user will select a checkbox at location (0,2) then the checkbox at location (2,0) will be selected automatically. similarly if a user will select a checkbox at location (2,1) then the check box at location (1,2) will be selected automatically. i want to achieve this functionality using jquery. i hope that i will get some help from you guys. Thanks