Join 131,519 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,911 people online right now. Registration is fast and FREE... Join Now!
I have a feeling you put this in the wrong forum, since this is the Graphics Design forum and you're asking a programming question. What language are you programming in so this can get moved to the proper forum?
I am not good at javascript at all. So what I did was, go over net, try to find email validating forms, view source files and copy their email validating function . You can do the same. I used gmail.com as your fix domain, and haven't changed much in that ready function. You can do the changes you require.
javascript
function echeck(str) {
var at="@gmail.com" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return false }
I am not good at javascript at all. So what I did was, go over net, try to find email validating forms, view source files and copy their email validating function . You can do the same. I used gmail.com as your fix domain, and haven't changed much in that ready function. You can do the changes you require.
javascript
function echeck(str) {
var at="@gmail.com" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return false }
I am not good at javascript at all. So what I did was, go over net, try to find email validating forms, view source files and copy their email validating function . You can do the same. I used gmail.com as your fix domain, and haven't changed much in that ready function. You can do the changes you require.
javascript
function echeck(str) {
var at="@gmail.com" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ alert("Invalid E-mail ID") return false }