Add more button using jquery, I also added condition to not add more than 10 rows.

jQuery('#addmore').click(function() {

var rowCount = jQuery('.i').length;
if(rowCount<10){
jQuery( ".myrow" ).after('

');
}
else{
jQuery("#myfile").show();
}

});

Advertisements