Hi everyone,
I have a jquery script that prepends a <div> tag on button click. Additionaly in this script there are some jquery effects(like slideDown) applicable to <div> tags that were before(and for them effects work fine) and also to <div> which was prepended. However, after new <div> is prepended the effects don't work on it, why? how to fix it???

Thnx in advance.

The effects must be set up after the prepend and make sure the you set the class in the prepend function

I.E.

$('body').prepend("<div class='className'>blah blah blah </div>");

$('div.className')....
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.