View Single Post
Old 09-24-2007, 11:53 PM   #4 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

Im not sure present is a function in Protoype, try changing present() to empty(), you'll have to negate each condition too.

Code:
valid = !$(this.to).empty() && !$(this.subject).empty() && !$(this.message).empty();
Karl is offline  
Reply With Quote