Thanks for the reply...the paren before the second function definitely
shouldn't have been there...

Now, with this:

<script>

$(document).ready(function() {
                
     $('.cancel').livequery('click', function() {
                        
          $(this).parent().parent().find('.select-div').hide();
          $(this).parent().hide();
          $(this).parent().parent().find('.last-name').fadeIn(500);
          $(this).parent().parent().find('.first-name').fadeIn(500);
          $(this).parent().parent().find('.change-div').fadeIn(500);
          return false;
                                
     });        
});

</script>

I get:

"missing } in XML expression"
"}); \n" <--- the brace and parenthesis refers to the first pair in the code 
above

Again, I've tried every variation...what am I doing wrong?

Thanks,

Rick


> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> Behalf Of donb
> Sent: Friday, February 13, 2009 7:49 PM
> To: jQuery (English)
> Subject: [jQuery] Re: Would some please tell me what's wrong with this syntax?
> 
> 
> The '()' around the 'click' function doesn't belong there.
> 
> On Feb 13, 7:38 pm, "Rick Faircloth" <r...@whitestonemedia.com> wrote:
> > I'm getting this error:
> >
> > "missing ) after argument list"
> >      "return false;\n"
> >
> > from this code:
> >
> > $(document).ready(function() {
> >
> >      $('.cancel').livequery('click', (function() {
> >
> >           $(this).parent().parent().find('.select-div').hide();
> >           $(this).parent().hide();
> >           $(this).parent().parent().find('.last-name').fadeIn(500);
> >           $(this).parent().parent().find('.first-name').fadeIn(500);
> >           $(this).parent().parent().find('.change-div').fadeIn(500);
> >
> >      })
> >      return false;
> >      );
> >
> > });
> >
> > I've tried every variation I can think of and can't get rid of the error...
> >
> > Thanks,
> >
> > Rick

Reply via email to