ok thanks its working great now....hey i hve another problem....i need to validate like
pradeep jain:pradeep@bac.com,pradeep new:new@abc.com
is there a way to do it....
Hi Dude, whether pradeep jain & pradeep new are the first name and last name of the person who is having that mail id. You want to validate only the mail id not the name. If thats the case: have two arrays
ex: code
[HTML] var myArray1 = new Array();
var myArray2 = new Array();
var input = document.getElementById('textVal').value; //This has the pradeep jain:pradeep@bac.com,pradeep new:new@abc.com
myArray1 = input.split(",");
for(i=0;i<myArray1.length;i++)
{
myArray2 = myArray1[i].split(":")
// myArray2[0] ----> contains the Name
// myArray2[1] -----> contains the Id to be validates;
validate(myArray2[1]);
}[/HTML]
This is the way u can do it. If u have doubts post back it. I will try to help u out.
Regards
Ramanan kalirajan
}