Provided by: kaya_0.4.4-6ubuntu3_amd64 bug


       HTMLDocument::addOption - Adds a labelled checkbox to a form.


       ElementTree addOption( ElementTree parent, String iname, SelectOption option )


       parent The parent element

       iname  The  name of the checkbox. Remember that names starting with "kaya_" may be used by
       the Kaya standard library and should not be used directly by applications.

       option The value and label of the checkbox, and whether it is checked by default


       Adds a single labelled checkbox to a form. Labelled controls are wrapped  in  a  division,
       and so the parent may be the form itself.

    opt = SelectOption("Confirm action","1",false);
    <div><input type='checkbox' name='confirm' value='1' id='Kay1'>
      <label for='Kay1'>Confirm action</label></div>


       Kaya  standard  library  by  Edwin Brady, Chris Morris and others ( For
       further information see


       The Kaya standard library is free software; you can redistribute it and/or modify it under
       the  terms  of the GNU Lesser General Public License (version 2.1 or any later version) as
       published by the Free Software Foundation.


       HTMLDocument.SelectOption (3kaya)
       HTMLDocument.addLabelledInput (3kaya)
       HTMLDocument.addLabelledSelect (3kaya)
       HTMLDocument.addLabelledTextarea (3kaya)
       HTMLDocument.addOptionList (3kaya)