When I hover the button, the background color is not changing.
My jQuery:
<script type="text/javascript" src="/js/jquery.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$(".reject").hover(function() {
$(this).animate({background: '#000'}, 1000);
}, function(){
$(this).animate({background: '#333'}, 1000);
});
});
</script>
<style type="text/css">
.reject{padding:10px;font-size:20px;background:#F00;}
</style>
My html:
<button class="reject">Reject</button>
What am I missing?