2
Answers

how to append a Div with side down...

Vinoth Kumar

Vinoth Kumar

11y
924
1
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 = $('<div class="empList" id=list' + uniqueId + '>');
        var sal = $('<input id=sal' + uniqueId + ' name=sal' + uniqueId + ' type="text" class="tab">');       
        $("#parentDiv").append(newDiv.append(drop));                    
        $("#list" + uniqueId).append(sal);      
        uniqueId++;
}

So what i want to do next??????????????
Answers (2)