webMathematica >

HTMLCheckbox

HTMLCheckbox[name]
returns an HTML input tag of type checkbox HTMLSelect[name, True|False]
checks/unchecks the checkbox
  • 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.
You can demonstrate how the function works by loading the package.
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
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.
In[3]:=
Click for copyable input
Out[3]=