checkbox

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

checkbox

Post 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
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

oopsy - finally google pulled thru.

Found what I needed :)

value= YES CHECKED

Bam!
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

for xhtml it would be:

Code: Select all

checked='checked' or checked="checked"
Post Reply