It is possible add a row in a table without using the "add" button/link?
Please Help.
It is possible add a row in a table without using the "add" button/link?
Please Help.
Easiest thing to do is programmatically trigger a click on the add button with Javascript. If you add a CSS class to your table (MyTable for instance) this should work:
$(document).ready(function(){ $('.MyTable .cf-table-add-row').trigger('click'); });
Thank you, It work
Hi Scott,
Can you please assist me to trigger a add button of multiple table.
Currently i am using following code to trigger the add button but it's not triggering.
Code :
for(var j = 1 ; j < rowCount ; j++){
var test = ".table"+j;
$(".table"+j+"").hide();
$(test+" tbody tr").remove();
$(test+' .cf-table-add-row').trigger('click');
}
Can you please help.
Regards,
Sudesh..