In my program i am using this jquery plugin to show notifications in the jsp pages.
What i want is to get a value from a html table and display it in the text inside the notification, What i tried is as below
<script type="text/javascript">
$(document).ready(function() {
var table = document.getElementById("item");
for (var i = 1; i<= table.rows.length; i++) {
val=table.rows[i].cells[1].innerText;
if(table.rows[i].cells[10].innerHTML >= table.rows[i].cells[15].innerHTML)
{
//alert(val);
jNotify(
' Re-order level' ,
{
autohide:false,
TimeShown:3000,
HorizontalPosition:'center'
});
}
}
});
</script>
the variable val in the code is getting alerted in a message box but not inside the jNotify notification.
Please Help.
jNotify(val, { [...] });?