Karl's suggestion is how I always do it...simplest IMO.

On Dec 6, 8:19 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Sure, that's fine. You could also do this:
>
> if (!$('#text').val())
>
> --Karl
>
> ____________
> Karl Swedbergwww.englishrules.comwww.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.

Reply via email to