Friday, 27 September 2013

Blinking a div with background-color in jquery using setInterval

Blinking a div with background-color in jquery using setInterval

the code :
<div id="divtoBlink" ></div>
css:
#divtoBlink{
width:100px;
height:20px;
background-color:#627BAE;
}
javascript:
setInterval(function(){
$("#divtoBlink").css("background-color","red");
},100)
but nothing is happening can anyone tell me what i am doing wrong ?

No comments:

Post a Comment