JQuery Notification
Set the autoCloseDelay property of the jqxNotification. Author: http://jqwidgets.com
by hugosolar
HTML
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="jqxNotification">
<div class="content">
Sample notification
</div>
</div>
JavaScript
/*
Declaramos la notificación sin abrirla
*/
$("#jqxNotification").jqxNotification({
animationCloseDelay:1000,
opacity: 1,
autoOpen: false,
autoClose: true,
autoCloseDelay:5000,
template: "info"
});
/*
seteamos el texto al div interno del contenedor de la notificación
*/
$("#jqxNotification").find('.content').html('Hola soy una notificación');
//abrimos
$("#jqxNotification").jqxNotification('open');