Link to home
Start Free TrialLog in
Avatar of gfedz
gfedzFlag for United States of America

asked on

Using AJAX or JavaScript to create a disclaimer popup

I have a modalpopup that the user enters in information for his request.  Once he has filled out the form, I want a disclaimer to popup before it submits the form.  I need the popup to have an 'I Agree' checkbox that disables the OK button until 'I Agree' is checked.  I'm open to any ideas.  I can post some code if needed.
Avatar of Tyler Laczko
Tyler Laczko
Flag of Canada image

in your <form> tag put onSubmit="checkForm()"

checkForm is a js function that return true if clicked ok, false if clicks cancel

** that is how i do it with my web development. P.S. checkForm() is a function that you need to write.
Avatar of gfedz

ASKER

How would I add a checkbox inside the messagebox?
ASKER CERTIFIED SOLUTION
Avatar of Tyler Laczko
Tyler Laczko
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gfedz

ASKER

Wasn't really what I was looking for but does work.  I just went a different route.