I want to blink the notification when its called from the server and need to stop when its Clicked..
$(document).ready(function() {
$("#new_message").load('new_notification');
$("#indi").load('indi');
setInterval(function() {
$("#new_message").load('new_notification');
$("#indi").load('indi');
}, 1000);
});
<span class="label label-success" id="indi"></span> // Here the notification is shown the blink needs here
<ul class="dropdown-menu">
<ul class="menu" id="new_message">
</ul>
</ul>
</span>
Try to use this Jquery Plugin .It has a blink and unblink functions .