Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body >
  <iframe id="demo" srcdoc='<img src="myimg.jpg"><img src="myimg_smal.jpg"><img src="myimg12312.jpg">'>
  
  </iframe>
</body>
</html>
 
// $("#demo").contents().find('img[src*="myimg"]').filter(function(){
// console.log(this.src);
// return this.src.indexOf('myimg')>-1;
// });
// $("input[id*='DiscountType']").each(function (i, el) {
//          //It'll be an array of elements
//      });
console.log($("#demo").contents().find('img[src*="myimg"]')[0]);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers