title: Hiding images with blank src using jquery
body: <p>I have 4 sub images on a page that get their src attribute from a database. they all have a class="subImage". When there is no DB entry I would like to hide the element as opposed to have a broken link as i currently have.
  I have tried in jQuery:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
      $('.subImage[src^=""]').css('visibility:hidden');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Am I way off?</p>
  
  <p>thanks.</p>