Thanks, guys!  That took care of it!

Rick

> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> Behalf Of MorningZ
> Sent: Tuesday, December 16, 2008 2:31 PM
> To: jQuery (English)
> Subject: [jQuery] Re: Is this syntax correct?
> 
> 
> 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