the code below add and remove table row with the help of Jquery the add function works fine but the remove only work if I remove the first row
When cloning, by default it will not clone the events. The added rows do not have an event handler attached to them. If you call clone(true) then it should handle them as well.
clone(true)
http://api.jquery.com/clone/