Sure, that's fine. You could also do this: if (!$('#text').val())
--Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 6, 2008, at 5:12 PM, Costaud wrote:
Hello, I'm wondering if this is the correct way of checking whether the textbox is empty or not: if ($("#text").val() == '') Thanks.