title: Limiting the jQuery search scope correctly?
body: <p>I've stumbled up this code  and I'm wondering if its just limiting the scope or selecting both of the elements at the same time.</p>
  
  <pre><code>container = jQuery("#test", parent.document);
  
  jQuery("param[name=scale]", another.object)
  </code></pre>
  
  <p>Can anyone shed some light on this?</p>
  
  <p>Edit: the full example: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  jQuery = parent.jQuery;
  container = jQuery("#test", parent.document);
  
  another = {
      targetw: container.width()
  };
  
  function onEnd(){
    container.slideUp();
  }
  
  function onStart(){
    another.object = jQuery("object", document);
  
    another.w =  another.object.attr("width");
    another.h =  another.object.attr("height");
    another.targeth = Math.floor(another.targetw * another.h  / another.w);
  
    jQuery("div&gt;iframe",container).width(another.targetw);
    jQuery("div&gt;iframe",container).height(another.targeth);
  
    another.object.css("width", another.targetw+"px");
    another.object.css("height", another.targeth+"px");
  
    another.object.attr("width", another.targetw);
    another.object.attr("height", another.targeth);
  
    jQuery("param[name=scale]",another.object).attr("value","exactfit");
  
    another.object.parent().attr('style', function(i,s) { return s + 'background:none; width: '+another.targetw+'px !important; height: '+another.targeth+'px !important;' });
  
  }
  document.write('*snipped code*');
  &lt;/script&gt;
  </code></pre>
  
  <p>`</p>