要素を繰り返し処理し、その要素srcの子の属性を取得しています。私はこのHTMLコードを持っています:
<noscript data-alt="super awesome">
    <img src="http://farm9.staticflickr.com/8235/8585847956_39864361e3.jpg" alt="something" />
</noscript>
<noscript data-alt="super awesome">
    <img src="http://farm9.staticflickr.com/8235/8585847956_39864361e3.jpg" alt="something" />
</noscript>
およびjQuery:
$('body').children().each(function() {
  var noscriptTag = $(this)[0];
  var imgAlt = noscriptTag.getAttribute("data-alt");
  var img_src = noscriptTag.find('img');
  var img_regular = img_src.getAttribute("src");
  console.log(img_regular);
});
しかし、私はこのエラーを受け取ります:
Uncaught TypeError: Object #<HTMLElement> has no method 'find'
また、他のさまざまな組み合わせ(など$(this).find('img');)を機能させずに試しました。
デモは次のとおりです:http://jsfiddle.net/LjWhw/
imgその要素のタグをターゲットにするにはどうすればよいですか?ありがとう!
更新:<noscript> JavaScriptで内部にある要素をターゲットにすることはできません。