Home Cooker Classes Others Rice CookerGX
Classes  >  checkbox  >  checkbox(element)
checkbox class : checkbox(element) fitter

Description

Gets an instance of checkbox class initialized by argument.

Syntax

new checkbox(element inputElement)

Arguments

ClassNameDescription
elementinputElementAn instance of the element class representing the input tag which the type attribute is "checkbox".

Return value

ClassDescription
checkboxAn instance of the checkbox class initialized by argument.

Sample code

// The inputElement is an instance of the element class representing the input tag.

checkbox checkboxInstance = new checkbox(inputElement);

Notes

If the argument is not an instance of the appropriate element class, an exception will be raised.

Links for reference

None.

Copyright © Rice All rights reserved.