I am trying to use the jQueryUI button widget, especially the option to turn checkbox into nice buttons.
The normal button works fine, but the checkbox doesn't!
Here is my code
HTML:
<button id="button">button</button>
<label for="input">
<input id="input" type="checkbox"/>Checkbox
</label>
JavaScript:
$('#button').button();
$('#input').button();
I can't understand why it doesn't work on checkbox!!