9
My backbone model has a boolean value (isRegistered). When I render out the view I want to have a checkbox checked or unchecked depending on the true/false value of the boolean.
My current effort looks like this:
<input id="isRegisteredCheckbox" checked="<%= isRegistered ? 'checked': ''"/>
this doesn't work because according to the W3C Specification the checked attribute needs to be completely removed to uncheck a checkbox.
How do I do it using backbone template?