Powered by Blogger.

Add more rows using jQuery



Add more rows using jQuery

Add more button using jquery, I also added a 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();
}

});

No comments