How can I exclude the placeholder from being hovered?
HTML:
<ul class="listing">
<li><p>red</p></li>
<li><p>green</p></li>
<li><p>blue</p></li>
<li id="li-placeholder"><p>placeholder</p></li>
</ul>
JS:
$(function() {
$(".listing > li > p").hover(function() {
// exclude placeholder
// try...
// $(".listing > li > p").not("#li-placeholder").hover(function() {
// $(".listing > li > p:not('#li-placeholder')").hover(function() {
$(this).css("cursor", "help");
});
})