I want a background change on click. This is what I have.
<script type="text/javascript">
$(document).ready(function(){
$("li.one").click( function(){
$("body").removeClass('bg2 , bg3').addClass("bg1").fadeIn('slow');
});
$("li.two").click( function(){
$("body").removeClass("bg1 , bg3").addClass("bg2").fadeIn('slow');
});
$("li.three").click( function(){
$("body").removeClass("bg1 , bg2").addClass("bg3").fadeIn('slow');
});
});
</script>
the change works fine but it is not fading in. What am I doing wrong?
Thank you in advance