title: change img src using jquery
body: <pre><code>&lt;div class="s4-titlelogo"&gt;
   &lt;a href="/sites/mysite"&gt;
  &lt;img name="onetidHeadbnnr0" id="ctl00_onetidHeadbnnr2" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px;" alt="bobpub" src="/_layouts/images/blank.gif" complete="complete"/&gt;
  &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If the src attribute of the img is blank.gif, then i want to set the src attribute to my icon url "/_layouts/images/myicon.gif". I need to reference the img as this $('.s4-titlelogo img').</p>
  
  <p>SO FAR:</p>
  
  <pre><code>iconurl = $('.s4-titlelogo a&gt;img').attr("src");
              if (iconurl == ""/_layouts/images/blank.gif")
              {
  
              }
  </code></pre>