Page 1 of 1

checkbox

Posted: Mon Apr 12, 2004 6:20 pm
by tim
Okay I dont want any JS or any of that bs, what I do want is a checkbox that value is CHECKED by default

I tried
<input type=checkbox name=blah value=YES>
No go, i tried other value=____

please help

Posted: Mon Apr 12, 2004 6:22 pm
by tim
oopsy - finally google pulled thru.

Found what I needed :)

value= YES CHECKED

Bam!

Posted: Mon Apr 12, 2004 6:43 pm
by andre_c
for xhtml it would be:

Code: Select all

checked='checked' or checked="checked"