Script güncelleme yapmaktayım. Eski sürümde çalışan bu kod yeni sürümde çalışmıyor.
<script type="text/javascript"> $(function() { var stepDiv = $('#p_steps'); var i = $('#p_steps p').size() + 1;
$('#addStep').live('click', function() { if( i < 10 ) { $('<p><label for="p_stepss"><small><?=$lang['jobs_06']?>: '+ i +'</small> <input class="form-control" type="text" id="p_step" name="p_step_' + i +'" value="" /></label> <a href="#" id="addStep"> <a href="#" id="remStep"></a></p>').appendTo(stepDiv); i++; } return false; });
$('#remStep').live('click', function() { if( i > 0 ) { $(this).parents('p').remove(); i--; } return false; }); });</script><a href="#" id="addStep"></a> A tagına basınca normalde yeni bir input oluşturması lazım.