There is the following html:
<ul id="Pagination"> <li class="ImagePrev"><?php previous_post_link('<a>%link</a>')?></li> <li class="ImageNext"><?php next_post_link('<a>%link</a>')?></li> </ul> Each li has its own background and, if there is no link, you need the background to disappear!
My attempt:
if(("#Pagination a") == 0){ alert("1"); }
if($("#Pagination a").length == 0)? - Alexey Shimansky