Adding JS button in datatable data
Adding JS button in datatable data
jigar311982
Posts: 70Questions: 31Answers: 0
Hello,
I am using datatable with remote AJAX data from server,
It have one column with below output name actions, means it is creating one column named actions with button and icons,
If i click on 'New' button it should run on click js as below, but JS is not getting any output on button click,
How to solve this issue?
:
"<button type="button" class="btn-outline default" id="new_user_showbtn">New</button>
↵ <div class="btn-group">
↵ <a href="javascript:;">
↵ <i class="icon-settings font-red-sunglo"></i>
↵ </a>
↵ <a href="javascript:;">
↵ <i class="icon-close font-red-sunglo"></i>
↵ </a>
↵</div>"
JS to fire on button click.
$('#new_user_showbtn1).on( 'click',function () {
console.log('test');
});
Thank you
This discussion has been closed.