Core Docs | Additional Modules Docs

sb.element.checkBox


@Description: Used to create labeled cross-browser checkboxes. When the label is selected it checks or unchecks the box
@File: Element/checkbox.js
@Author: Paul Visco
@Param: Object params
params.label - The text label
params.name - The name property of the input
params.value - The value property of the input
params.checked - The checked property of the input
@Return: String Returns the value stored for the cookie or false if the cookie is not found
@Example:
var x = new sb.element.checkBox({
    label : 'Add me to the mailing list',
    name : 'Add To Mailing List',
    value : 'yes',
    checked : true
});

x.label.appendToTop('body');