Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello, when using:
print $q->checkbox({-name=>'mybox',-label=>'',-value=>'myvalue');
I get a checkbox without label surrounded by a <label> tag:
<label><input type="checkbox" name="mybox" value="myvalue" /></label>Is there a way to get rid of the label tag sorrounding the input tag still using CGI.pm ? I'd like to get this:
<input type="checkbox" name="mybox" value="myvalue" /><label for="mybox"></label>Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use CGI.pm to label a checkbox
by GrandFather (Saint) on Oct 12, 2011 at 10:02 UTC | |
by Anonymous Monk on Oct 12, 2011 at 10:11 UTC | |
by GrandFather (Saint) on Oct 12, 2011 at 10:27 UTC | |
by Your Mother (Archbishop) on Oct 12, 2011 at 13:54 UTC |