Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Requiring check box in my form

Status
Not open for further replies.

LittleNFiesty

Technical User
Sep 26, 2006
46
US
How do I make a check box required in my form in dreamweaver cs4?

I'm just using the on click behavior for the order button for validation.

Or if someone could point me to a "standard" javascript for form validation based on field types that I could customize that would be awesome!
 
Hi

LittleNFiesty said:
How do I make a check box required in my form
If it is required to be checked, then why not just set it [tt]checked[/tt] ?
HTML:
[b]<input[/b] [maroon]type[/maroon][teal]=[/teal][green][i]"checkbox"[/i][/green] [maroon]checked[/maroon][teal]=[/teal][green][i]"checked"[/i][/green][b]>[/b]
LittleNFiesty said:
in dreamweaver cs4?
Better ask that in a Dreamweaver forum.
LittleNFiesty said:
I'm just using the on click behavior for the order button for validation.
Should we guess how are you using it ? Post your relevant code, both HTML and JavaScript.

By the way, validation should be performed server-side. Do not put too much effort in client-side validation, as it is not reliable.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top