errorka.prependTo(punct_block.find('.reg_error_block')).slideDown(500, function(){ setTimeout(function(elem){ elem.closest('.punct_block').find('.reg_add_input_pole').on('click', reg_add_input); elem.remove(); }, 600, $(this)); });