0
I use the Datatables plugin, and in the table there will be the option to edit and delete, I want to show a confirmation if the user click delete. Therefore, I will use the plugin "confirm", however, this plugin is only valid for the first page of Datatable, on other pages or when I do a search it does not work. I thought about the event "on", but how do I pass the plugin "confirm" instead of the function (3rd parameter).
Something like:
$("html").on("click", ".confirm", $.confirm());
You can test without calling the function...
$("html").on("click", ".confirm", $.confirm);
. If it doesn’t work please indicate which plugin is this and where is the documentation and source code so we can better understand the plugin and the problem.– Sergio
I cannot invoke without the parameters, by using them (passing the message, buttons, etc)... The plugin in question is the following: http://myclabs.github.io/jquery.confirm/
– Mukotoshi
tried $("html"). on("click", ". confirm", Function(){ $(this). confirm() }); ?
– Rafael Withoeft
I had already tried this way, so it only works in the second click :/
– Mukotoshi