I have a form where I have to post form values to my action class. In this form I have a checkbox that needs to be readonly. I tried setting disabled="true"
but that doesn't work when posting to the action class.
So please advice??
There is no property to make the checkbox readonly. But you can try this trick.
<input type="checkbox" onclick="return false" />