Hi Friends, I am using jquery to delete a div after slide Up dynamically...
$(document).on("click", ".smlRed", function ()
{
$(this).parent().slideUp("slow", function ()
{
$(this).remove();
});
});
But, I want to append a div after slide down... my normal code as follows....
var uniqueId = 1;
function appen()
{
var newDiv = $('
');
var sal = $('');
$("#parentDiv").append(newDiv.append(drop));
$("#list" + uniqueId).append(sal);
uniqueId++;
}
So what i want to do next??????????????
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Vinoth KumarPosted Oct 18, 2013, 8:36 AM
and i used the following coed its working fine once again thanks for replay me...
i just add style="display: none;" to that div and this line to the end $("#list" + uniqueId).slideDown("slow"); i think its simple right?
var uniqueId = 1;
function appen()
{
var newDiv = $('
var sal = $('');
$("#parentDiv").append(newDiv.append(drop));
$("#list" + uniqueId).append(sal);
$("#list" + uniqueId).slideDown("slow");
uniqueId++;
}
Posted Oct 18, 2013, 2:10 AM
try this code below
var $newdiv1 = $( "" ),
newdiv2 = document.createElement( "div" ),
existingdiv1 = document.getElementById( "foo" );
$( "body" ).append( $newdiv1, [ newdiv2, existingdiv1 ] );
My this code help you