$("#docsslavep").one("click",function(){ $('#ajaxsuccessdoc').find('.doctext2').each(function(i, elem) { $( '#ajaxsuccessdoc' ).on('click','#removeslaved'.concat(i),function() {