Issue with changing background color during FadeIn and FadeOut effect.
Whenever I click on the "whatup" link, my button should blink with alternating red and white colors. Below is the HTML code:
<a id="blkwhatsup" href="#" >whatup</a>
<input id="blkbtn" type="submit" value="2">
Below is the jQuery code where I have set up the blinking effect for the button. However, despite it blinking, the background color does not change as intended:
$('#blkwhatsup').click(function(e) {
interval = setInterval(function() {
$('#blkbtn').fadeOut({ backgroundColor: '#90191c',color:'#fff', border: '1px solid #90191c' }, 300)
$('#blkbtn').fadeIn( { backgroundColor:'#fff', color: '#90191c', border: '1px solid #90191c'}, 300);
}, 1000);
});