Results 1 to 2 of 2

Thread: Confirm and alert

  1. #1
    Join Date
    Mar 2013
    Winnipeg, Canada

    Confirm and alert

    I was wondering if I can do this with Javascript:

    I have a form and want to validate the name and email. If everything is good I need a confirm dialog box in the dialog box I want a choice to submit a php page or to cancel. If the validate fails I need it to go back to the form and put focus on the input field that was wrong. If anyone can let me know what I need to do or how I would go about doing this I would greatly appreciate it.

    Thank you in advance.

  2. #2
    Join Date
    Dec 2012
    NSW Australia
    form validation is the bread and butter of web development and there are literally millions of web pages with people trying to help you understand how it is done.

    if you do a search for *form validation with JavaScript* you will be overwhelmed with results..

    work through one or two and you will get an idea on how to do it.

    as for the dialog box that will answer itself when you get a handle on form validation...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center