Vinoth Kumar

Vinoth Kumar

  • NA
  • 9
  • 4.2k

how to append a Div with side down...

Oct 18 2013 1:34 AM
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)