This function applies to my html array. Just a question, how to delegate this for the lines that will dynamically insert with ajax.
$('#mytable').bootstrapTable({
contextMenu: '#context-menu',
onContextMenuItem: function (row, $el) {
if ($el.data("item") == "add") {
alert('It work');
}
if ($el.data("item") == "edit") {
alert('It work');
}
if ($el.data("item") == "delete") {
alert('It work');
}
}
});
Thanks,