Hi kimmansu,
The solution is:
<div id="jqxNoti"><div id="content">
</div></div>
<button type="button" id="btnInfo">alert Info</button>
<button type="button" id="btnWarning">alert Warning</button>
<button type="button" id="btnSuccess">alert Success</button>
<button type="button" id="btnError">alert Error</button>
<button type="button" id="btnMail">alert Mail</button>
<button type="button" id="btnTime">alert Time</button>
Javascript
function jqxNoti(temp, msg) {
$("#jqxNoti #content").html(msg);
$("#jqxNoti").jqxNotification({ theme:"energyblue", width: "auto", opacity:0.9, position:"top-right", autoOpen:false, autoClose:true, template:temp });
$("#jqxNoti").jqxNotification("open");
}
$("#btnInfo").click(function(){ jqxNoti( "info", "Info Notification Test!!!" ); });
$("#btnWarning").click(function(){ jqxNoti( "warning", "Warning Notification Test!!!" ); });
$("#btnSuccess").click(function(){ jqxNoti( "success", "Success Notification Test!!!" ); });
$("#btnError").click(function(){ jqxNoti( "error", "Error Notification Test!!!" ); });
$("#btnMail").click(function(){ jqxNoti( "mail", "Mail Notification Test!!!" ); });
$("#btnTime").click(function(){ jqxNoti( "time", "Time Notification Test!!!" ); });
Best regards,
Peter Stoev
jQWidgets Team
https://www.jqwidgets.com/