Grails - Tag - checkBox

Tag - checkBox

Description

Creates a checkbox form field. All the usual HTML elements apply beyond the below:

Parameters

  • name (optional) - The name of the checkbox
  • value (optional) - The value of the checkbox, if evaluates to true sets checkbox to checked

Examples

// a checked checkbox
     <g:checkBox name="myCheckbox" value="${true}" />