[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
I found the error. had to do data.remove(); instead of data.hide(); On 6 Jan., 17:23, revivedk wrote: > I'm pretty sure i'm not replacing it, > im calling this:  $(this).attr("src","images/up.png"); > does that actually replace the element? > I did

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
gt; There it is. How exactly does it change, are you replacing it? > > See the LiveQuery plugin, it rebinds event handlers to all matched > elements automatically:http://brandonaaron.net/docs/livequery/ > > On Jan 6, 7:49 am, revivedk wrote: > > > Thank you!. > > > I&

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
$(document).ready(function(){ $("#cal > ul").tabs(); $(".CalendarDelete").click(function(Element) { var CalendarID = $($(Element.target).parent()).parent().attr ('id').substr(4); var deleteIt = confirm("Vil du slette denne kalender og alle tilkn

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
27;).css({ >                    backgroundColor: Calendar.css('backgroundColor'), >                    height: '300px' >              }).end().insertAfter(Calendar); >        $this.attr("src","images/up.png"); >    }; > > }); > > On J

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread revivedk
Unfortunately, no. On 5 Jan., 17:57, Liam Potter wrote: > can we see a live example? > > revivedk wrote: > > Hi. > > I'm having a problem, where > > >    $(".showEvents").click(function(e) { > >            var CalendarID = $($(e.target

[jQuery] $.click stops working after 2 clicks

2009-01-05 Thread revivedk
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"});

[jQuery] Animating two elements simultaneously

2008-12-14 Thread revivedk
How would I go about animating the width of two divs simultaneously? IE, I have two elements on a page, both are 50% width. then I'd want one of them to animate down to a width of 10%, and the other to a width of 90%. how would I make them do that, at the same time?

[jQuery] getting clicked element

2008-12-03 Thread revivedk
Hi. how would I register what element is clicked on the site? I need to be able to register what element is clicked, on the entire DOM. $(document).click(function () { var oBj = this; //alert($(o