[jQuery] String compare in Jquery

[jQuery] String compare in Jquery


Hi. This is my first post, and I am a total jquery noob; so please
forgive my lack of ediquite and knowledge and feel free to correct
either.
I am trying to discover if my page is valid using the jquery form
validation plugin (http://docs.jquery.com/Plugins/Validation)
When I run this script, I always get the latter (the "else" option -
it can't find either value)
if($("#aspnetForm").valid() == "true") { alert("Its Valid!"); }
else if($("#aspnetForm").valid() == "false") { alert("Its
Invalid!"); }
else { alert("Can't find either"); }
I also tried
if($("#aspnetForm").valid()) but this doesn't work either.
Any suggestions?