I\'m looking for a way to do the following.
I add a just give elem.fadeOut(10).fadeIn(10); Since I don't see any jQuery based solutions that don't require extra libraries here is a simple one that is a bit more flexible than those using fadeIn/fadeOut. Use it like this I think you could use a similar answer I gave. You can find it here... https://stackoverflow.com/a/19083993/2063096 Note: This solution does NOT use jQuery UI, there is also a fiddle so you can play around to your liking before implementing it in your code.
$.fn.blink = function (count) {
var $this = $(this);
count = count - 1 || 0;
$this.animate({opacity: .25}, 100, function () {
$this.animate({opacity: 1}, 100, function () {
if (count > 0) {
$this.blink(count);
}
});
});
};
$('#element').blink(3); // 3 Times.