Not sure but should be like this:
if($(#'text').val(''));
Try up this and let me know if it works.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Costaud
Sent: Sunday, December 07, 2008 3:43 AM
To: jQuery (English)
Subject: [jQuery] if ($("#field").val() == '') or something more elegant?


Hello,

I'm wondering if this is the correct way of checking whether the
textbox is empty or not:

if ($("#text").val() == '')

Thanks.

Reply via email to