$.notify.addStyle('confirm', { html: "
" + "
" + "
" + "
" + "
" + "" + "" + "
" + "
" + "
", classes: { base: { "background-color": "#b6ff00" } } }); $(document).on('click', '.notifyjs-confirm-base .no', function () { //programmatically trigger propogating hide event $(this).trigger('notify-hide'); }); $(document).on('click', '.notifyjs-confirm-base .yes', function () { //show button text $(this).trigger('notify-hide'); action(circuitid); }); $.notify({ title: msg, button: "Confermo", circuitid: circuitid, }, { className: "info", style: 'confirm', autoHide: false, clickToHide: true, globalPosition: "top center" } );