I want to change the background color on mouse hover .This code works fine but I think this is not the right code
<script type="text/javascript">
$(document).ready(function() {
$('.test').bind("mouseover", function(){
var color = $(this).css("background-color");
$(this).css("background", "#380606");
$(this).bind("mouseout", function(){
$(this).css("background", color);
})
})
})
</script>
can anyone tell me some other solution?
Anonymous User
27-May-2018try this code