mercredi 11 novembre 2015

Cannot check checkbox - Thymeleaf

I have a list of users in a table with a column at the end that has checkboxes so if a user clicks on any of the checkboxes, he can delete the user in that row.

However, after I added the th:field="*{checkedUsers}" tag, I am not able to click any of the check boxes.

Here is the HTML code for that:

http://ift.tt/1Latwa0

Any ideas?

Thanks

EDIT:

I realize it could be something to do with the <label> tag:

The tag defines a label for an element.

The element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the element, it toggles the control.

The for attribute of the tag should be equal to the id attribute of the related element to bind them together.

http://ift.tt/1NL7roK

Is this the problem? And if so, how could I work around it?

EDIT 2:

<label> had nothing to do with it. I replaced it with <span> and I still can't click on any of the check boxes.




Aucun commentaire:

Enregistrer un commentaire