Hide ad prices if price field is empty else show
Hi,
I am trying to hide the price field if the ad has no price (i.e. empty string). I tried using the following jquery and sadly its not working.
<script type="text/javascript">
var $ = jQuery.noConflict();
if ($('.post-price').is(":empty")){
$('.price-wrap').hide();
}
</script>
so .post-price is the price field class, if its empty then hide the outer div (i.e. price-wrap).
Any help would be greatly appreciated. Thanks