<p class='sent' id='abc'>abc</p>
<p class='sent' id='abb'>abb</p>
<p class='sent' id='acc'>acc</p>
css
.sent:hover{
background-color:#e1e1e1; // works until the first click on .sent
}
js
$(".sent").click(function() {
$('.sent').css('background-color', 'transparent'); //works
$(this).css('background-color', '#e1e1e1'); //works
});
After first click on sent css sent:hover doesnt work !?
.sentelements, so he wants the current chosen or the hovering element to have colour#e1e1e1.