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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

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

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Not excatly what you want but could be ammended

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

Mark
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

in addition to an onsubmit confirmation check for the form, also look into the disabled="true" attribute for the submit button itself.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

php could also do this securely.

8)
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

yeah, i personally would much prefer to do it in PHP, however the client wanted JavaScript to do it :cry:
Post Reply