Is there email validation baked in to Rails 3?

Html document containing javascript email validation?

  • How can I make a form in HTML document containing only one field named as Email and one submit Button, using JavaScript functions. 1. It must accept only one specific email ID 2. Show Alert on acceptance or denial on Email address validation. 3. If enter any other email (instead of specific one) shows a wrong email alert. Please someone in urgent help me. Thanks in advance!

  • Answer:

    Here's a basic example of what you want: http://jsfiddle.net/ZXVK7/

Rawal Baig at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.