09-24-2007, 11:53 PM
|
#4 (permalink)
|
|
The Reckoner
Join Date: Sep 2007
Posts: 437
Thanks: 22
|
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();
|
|
|
|