Re: setting a BInput (checkbox) to CHECKED

Jan Marten Visser <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Organization Virgil B.V.
Message-ID <[email protected]>
Just found out that it should be BToggleButton, sorry to bother you.

Jan Marten Visser wrote:
> 
> Hi,
> 
> I am using a checkbox in a form. HTML:
> 
> <html>
> ...
> <input type="checkbox">Check me</binput>
> ...
> </html>
> 
> If you want a checkbox to be checked, your HTML should look like this:
> 
> <html>
> ...
> <input type="checkbox" CHECKED>Check me</binput>
> ...
> </html>
> 
> And this is my problem: how can i manipulate the fact whether a checkbox
> is checked from my model?
> I can of course use Set_Atr but that presupposes that I have a named
> attribute within my html tag which I can give a value like:
> 
> <html>
> ...
> <input type="checkbox" value="no">Check me</binput>
> ...
> </html>
> 
> But how can I manipulate the CHECKED attribute since it is not a
> name-value pair?
> 
> Regards,
> 
> Jan Marten
> 
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.