Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Checkbox

From MoodleDocs
Revision as of 09:24, 4 August 2009 by Jeff Forssell (talk | contribs) (Checkbox label AFTER)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Checkbox label

why AFTER (which is bolded in the text): "Create a checkbox with an id attribute. Add a <label for="id_of_checkbox"> element after the checkbox. As the text content of the label element, write the result of checking the box: "

I seem to recall having placed a label so it includes both the checkbox and the text belonging to it. I have sometimes used that to put in a tooltip with a title="when you put a check here, life will be wonderful ;-)" in the label tag and it would be good if that came up while hoovering over the checkbox itself. Isn't it also possible to make the checkbox "mouseclickable" even on the text which belongs to the checkbox? Jeff Forssell 09:24, 4 August 2009 (UTC)