title: preventDefault() doesn't work on image link
body: <p>i am trying to create a lightbox for my website but i got a problem. Since i am not very fluent in jQuery i do a lot of mistakes. One of them is that i cant make preventDefault() work for both text and image links! Check the following code</p>
  
  <p><b>HTML code:</b></p>
  
  <pre><code>Text link: &lt;a class='ultbox_simg' href='images/1.jpg'&gt;Image 1&lt;/a&gt;
  Image link: &lt;a href='images/1.jpg'&gt;&lt;img src="images/1t.jpg" /&gt;&lt;/a&gt; 
  </code></pre>
  
  <p><b>jQuery script:</b></p>
  
  <pre><code>$(document).ready(function ($){
  
      $(".ultbox_simg").click(function (obj){
          obj.preventDefault();
          var img_link=$(this).attr("href");
  
      });
  });
  </code></pre>