title: jQuery variable class with const index
body: <p>Hello I got this code in JavaScript:</p>
  
  <pre><code>var document = window.frames[1].document;
  var timer = document.getElementsByClassName("timer")[1].innerHTML;
  </code></pre>
  
  <p>and I have the same in jQuery, but it doesn't work</p>
  
  <pre><code>var timer = $(".timer", window.parent.frames[1].document).html();
  </code></pre>
  
  <p>Also I don't know how to interpret next to <code>.timer</code>  an index like in JavaScript. I mean in JS I got [1] but I don't know where in jQuery to put this.</p>
  
  <p>Sorry for bad english. And thanks for help.</p>