<script> alert($('#newFields input').size()); </script> <span id = "newFields"> <input type = "text"> <input type = "text"> <input type = "text"> <input type = "text"> <input type = "text"> </span>
var countNewFields = $('#newFields input').length; if(countNewFields > 0){ $('#remove').fadeIn(); }else{ $('#remove').hide(); }
$('#newFields').append('<br>',standartField).fadeIn(500);