title: How can I check if the href path contain image or someother link using javascript or jquery?
body: <p>Any One Know Tell me the suggestion to do this. How can i check if the anchor href attribute contain image path or some other path. </p>
  
  <p><strong>For Example:</strong></p>
  
  <pre><code>    &lt;a href="image.jpg"&gt;&lt;img src="image.jpg"/&gt;&lt;/a&gt;
      &lt;a href="http://google.com"&gt;&lt;img src="image.jpg"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>See the above example shows href attribute contain different path like first one is the image and second one is the some other site link. I still confuse with that how can i check if the href path contain the image path or some other path using jquery or javascript.</p>
  
  <p>Any suggestion would be great.</p>