listbox.formwidget

the <listbox class="formwidget" can be used in two ways: Note: In XUL, once a listitem is selected, it's impossible to undo the selection and select 'nothing'. You might want to add your own 'select none' button somewhere.

Note2: allthough listitems can contain any type of XUL element, most of them loose their interaction, which renders them useless, as the testsuite demonstrates ... if anyone knows how to prevent that let me know.

Note3: when seeding, checkbox listitems are never unchecked. Such is the nature of a checkbox: if it is not checked, it doesn't mean it should be unchecked; it means nothing. If you need a switch, use the listbox autocheck attribute with a seltype=single.

Example:

<listbox rows="4" class="formwidget" name="mybox" select="multiple"> <listitem label="Butter Pecan" value="bpecan"/> <listitem label="Chest Nuts" value="chestnut"/> </listbox> result:
Seed: "mybox/bpecan/Butter Pecan", "mybox/chestnut/Chestnut"

CGI: "mybox=bpecan&mybox=chestnut"

Additional Attributes:


Additional Properties:


Additional Methods: