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]> |
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