The markup used to create a wijcheckbox widget can be done in three different ways.
Markup
As a plain checkbox:
Paste inside the body tags of a page |
Copy Code
|
<input type='checkbox'> |
As a checkbox and a label:
Paste inside the body tags of a page |
Copy Code
|
<input type='checkbox' id='checkbox1' /><label for='checkbox1'></label> |
Or, as a label containing a checkbox:
Paste inside the body tags of a page |
Copy Code
|
<label><input type='checkbox' /></label> |
The following script initializes the wijcheckbox widget:
To initialize the wijcheckbox
Paste inside the head section of a page |
Copy Code
|
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$(":input[type='checkbox']").wijcheckbox();
});
</script>
|
The third of the markup examples and the script featured here results in the following:
See Also
Concepts
Reference