And to build on Mike's reply

understand that "this" is a DOM element in that context, *not* a
jQuery object

so

this.val   is not valid

but

$(this).val()    is valid








On Dec 16, 1:53 pm, Mike Alsup <mal...@gmail.com> wrote:
> > When I write it like this $('input#emailaddress')
> > I get a "this.val undefined" error...
>
> That's because 'val' is not a property on a that element.  You want
> 'value'.

Reply via email to