This simple code should change the class of the body element. But it doesn't work!
May the problem be in the wrong jQuery version link?
Besides, pretty strange, but in http://jsfiddle.net/4Bfa7/1/ it seems to work!
<!doctype html>
<html lang="en">
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$("li.work").click(function(){
$('body').removeClass();
$('body').addClass("work");
});
$("li.pret").click(function(){
$('body').removeClass();
$('body').addClass("pret");
});
$("li.port").click(function(){
$('body').removeClass();
$('body').addClass("port");
});
$("li.contact").click(function(){
$('body').removeClass();
$('body').addClass("contact");
});
</script>
<style>
body.contact{
background-color: red;}
</style>
</head>
<body class="front">
<div id=" container">
<header>
<h1 id="site-name"><a href="/"> Crearea web site</a></h1>
<nav>
<ul class="main-nav">
<li class="careers"><a href="/ro" onclick><span class="menu-item-title"> HOME</span></a>
</li>
<li class="work"><a href="/ro/about"><span class="menu-item-title"> About</span></a>
</li>
<li class="pret"><a href="/ro/preti"><span class="menu-item-title"> Pretul</span></a>
</li>
<li class="port"><a href="/ro/portfolio"><span class="menu-item-title"> Portofoliu</span></a>
</li>
<li class="contact"><a href="#"><span class="menu-item-title"> Contacte</span></a>
</li>
</ul>
</nav>
</header>
</body>
</html>