webMathematica`
HTMLCheckbox
HTMLCheckbox[name]
returns an HTML input tag of type checkbox
HTMLCheckbox[name, True False]
checks/unchecks the checkbox
Details
- The HTML functions are contained in a package, MSP`HTML`, which is loaded as part of the webMathematica layout.
- The function HTMLCheckbox provides a useful way to generate an input checkbox tag with webMathematica.
- HTMLCheckbox takes the name to use when the checkbox is submitted as an argument.
- If a second argument is given, it is used to determine whether or not the box is checked.
Examples
Basic Examples (1)
You can demonstrate how the function works by installing and loading the package:
If a second argument is given, it is used to determine whether or not the box is checked. In the following example the checkbox is checked.