how to delete all table rows in javascript code example
Example 1: javascript select row all delete
function get_vendor () {
$.ajax({
type: "POST",
url: "sugest_vendor",
beforeSend: function(){
$("#nama-vendor").css("background","#FFF");
},
success: function(data){
$("#nama-vendor").append(data);
}
});
}
Example 2: delete all the rows of table javascript
$("#table_of_items tr").remove();