On Sat, Dec 6, 2008 at 5:26 PM, Yuvraj Mathur <[EMAIL PROTECTED]> wrote:
> > Not sure but should be like this: > if($(#'text').val('')); Actually, this would *set* the value to '' and would always evaluate to true, because it returns the jQuery object for chaining (if you don't supply an arg to .val() it will return the value, if you supply an arg it's a setter and will return the chain). See http://docs.jquery.com/Attributes/val - Richard