I am using Spring MVC to create a checkbox like this:
<form:checkbox id="idVerifiable" path="verifiable"/>
It generates me:
<input id="idVerifiable" type="checkbox" value="false" name="verifiable">
If I try:
$('#idVerifiable').val("true");
It sets the value but the checkbox is not checked, how to change this to make it work?