PDA

View Full Version : TOS Required to Tick



paradise
10-07-2007, 09:05 PM
I have a TOS agreement in a text area and I want the user to tick a checkbox to show that they agree.

If they don't tick the checkbox, when they click on a link, it will open an alert box asking them to tick the checkbox.

How do I accomplish this?

Thanks,
Natalie

Trinithis
10-07-2007, 10:20 PM
if(!document.getElementById("myCheckBox").checked) {
....
}

thetestingsite
10-07-2007, 11:12 PM
...Or you can use a premade script like the one in the thread below.

http://www.dynamicdrive.com/forums/showthread.php?t=22212

Hope this helps.