0
votes

i am new to spring boot with thymeleaf.enter image description herei have a table with column id, parentid, menuname, url,roleid,permission id is primarey key auto increment, the value of permission is in checkbox that is 1 read,2=create, 3-update 4= delete, so a single row cloud have 1 or multiple permission values based on the assigned permisions,example: 1, (1,2), (1,2,3),(1,2,3,4),(3,4)

roleid is selected from the dropdownlist, now i want to select the single checkbox at the top it checks all the checkbox on its column, when i click the assign but, it should insert into table, please check the image and help me.