Page 1 of 1

javascript (enable button when.........)

Posted: Wed Apr 07, 2004 10:25 am
by malcolmboston
ok guys,

im currently creating a hosting site for a client but am now needing a bit of javascript (which i havent touched in around 3 years) basically......

i have checkbox, one for "i agree terms and conditions" and a next page button, i need to have next page "masked out" unless they have clicked on terms and conditions

any shove in the right direction would be great

Mal

Posted: Wed Apr 07, 2004 10:29 am
by JayBird
Not excatly what you want but could be ammended

http://javascript.internet.com/forms/accept-terms.html

Mark

Posted: Wed Apr 07, 2004 10:31 am
by malcolmboston
Thank You bech this is exactly what i wanted

Kudos to you 8)

i need to add alot more to the script but this is a great base to start from

Mal

Posted: Wed Apr 07, 2004 2:13 pm
by Unipus
in addition to an onsubmit confirmation check for the form, also look into the disabled="true" attribute for the submit button itself.

Posted: Wed Apr 07, 2004 4:46 pm
by tim
php could also do this securely.

8)

Posted: Thu Apr 08, 2004 2:25 am
by malcolmboston
yeah, i personally would much prefer to do it in PHP, however the client wanted JavaScript to do it :cry: