Preferably without using JavaScript.
This is my code using the SLDS, but the field value doesn't change or get set.
<div class="slds-form-element">
<div class="slds-form-element__control">
<span class="slds-checkbox">
<apex:inputCheckbox html-name="options" id="divsup" html-checked="{!myobject.field__c}" value="{!myobject.field__c}"></apex:inputCheckbox>
<label class="slds-checkbox__label" for="divsup">
<span class="slds-checkbox--faux"></span>
<span class="slds-form-element__label">Checkbox Label</span>
</label>
</span>
</div>
</div>
Has anyone been able to style the checkbox correctly?
In this case I was trying to rerender a outputPanel
when the checkbox changes, but I didn't post the actionsupport used (because I noticed that the checkbox wasn't even clickable anymore).
I want to be able to style a checkbox, and listen for changes so I can rerender a panel.
rerender
being part of the problem.