How about copying and pasting the code in question.

andy 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of revivedk
Sent: Monday, January 05, 2009 11:06 AM
To: jQuery (English)
Subject: [jQuery] Re: $.click stops working after 2 clicks


Unfortunately, no.
On 5 Jan., 17:57, Liam Potter <radioactiv...@gmail.com> wrote:
> can we see a live example?
>
> revivedk wrote:
> > Hi.
> > I'm having a problem, where
>
> >    $(".showEvents").click(function(e) {
> >            var CalendarID = $($(e.target).parent()).parent();
> >            if ( $('#data_'+CalendarID.attr('id').substr(4)).length > 
> > 0 ) {
> >                    $(e.target).attr({src : "images/down.png"});
> >                    
> > $('#data_'+CalendarID.attr('id').substr(4)).hide();
> >            } else {
> >                    CalendarID.after('<tr 
> > id="data_'+CalendarID.attr('id').substr
> > (4)+'"><td colspan="4" style="background-color:'+CalendarID.css
> > ('background-color')+';height:300px;">Test</td></tr>');
> >                    $(e.target).attr({src : "images/up.png"});
> >            }
> >    });
>
> > will stop working after I have clicked the #showEvents 2 times.
>
> >    <img border="0" class="showEvents" src="images/down.png"/>


Reply via email to