Thanx for the help folks, live() works..!
used mouseover and mouseout in place of hover..
~niraj
On Apr 1, 9:46 am, niraj wrote:
> Thanx Folks,
>
> This is what i do. I delete the li, and as expected, the events
> attached to this deleted li would be
> deleted. But before i delete this li, i ge
Thanx Folks,
This is what i do. I delete the li, and as expected, the events
attached to this deleted li would be
deleted. But before i delete this li, i get the src (which is the jpg
image), construct a fresh li and everything inside it and append() at
the back of the 'ul'. Only after this i rem
This sounds like a good candidate for event delegation. I believe that
jQuery.fn.live implements this for bubbling DOM events:
http://docs.jquery.com/Events/live#typefn.
On Mon, Mar 30, 2009 at 9:04 AM, Már Örlygsson wrote:
>
> > I believe this is a bug. Is there a workaround/fix tet?
>
> It's in
> I believe this is a bug. Is there a workaround/fix tet?
It's intended as a feature.
Most jQuery newcomers must find out the hard way that .remove() is
really more like a "destroy" or "delete" method.
If you .remove() an element you're signalling that you don't intend to
use it again.
Fortunate
I don't think this is a bug, if you go ahead and remove an element it
is quite normal to assume that you would want the binding on that
element to be removed as well in order to save ressources. In most
cases a removed element is not going to come back, otherwise it's
easier to just move it out of