SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Thread: textarea validation with Jacuba
-
Mar 22, 2007, 11:14 #1
- Join Date
- Jan 2004
- Location
- indiana
- Posts
- 11
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
textarea validation with Jacuba
I'm using the free spell checker available at http://www.jacuba.com/ which is applied to all textareas on a page. But, JavaScript validation fails on a textarea form field -- it displays the alert and proceeds with processing the form data. If I remove Jacuba, the form validation works as expected.
Has anyone used Jacuba and validation?
JavaScript snipet:
if (frmISRequest.memDescription.value == "" || /^\s+$/.test(frmISRequest.memDescription.value))
{
alert("Please enter a description of the project")
frmISRequest.memDescription.focus();
return (false);
}
else
{
event.returnValue=true;
}
Thanks,
Kathy
Bookmarks