Welcome Guest, Not a member yet? Register   Sign In
Checkboxes, checked by default, how to ?
#1

[eluser]Référencement Google[/eluser]
Hi,

I have a very simple problem on how to handle that simply with CI. I would like some checkboxes checked attribute to be checked by default (when loading the page the first time)

If I make that:
Code:
<input class="checkbox" id="alow_pub" name="alow_pub" type="checkbox" value="1"<?=$this->validation->set_checkbox('alow_pub', '1')?> />
There is no options that the checkbox have to be already checked before posting.

How to do it ?

Christophe


Messages In This Thread
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:16 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:30 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:50 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 07:53 PM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:07 PM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 02:00 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 02:08 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 08:18 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-23-2007, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB