Advertisement
Advertisement
| 04.01.2008 at 10:28AM PDT, ID: 23286553 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
if (FormAction == 'Search')
{
var str = document.thisForm.name.value;
var reg = new RegExp("[a-zA-Z]+,\s?[a-zA-Z]+");
if (reg.test(str))
alert("Format is valid.")
else
alert("Format is invalid.")
return;
}
|