title: Accessing Objects inside HTML Object with JS
body: <p>I am creating an array of div tags inside the player table div.  I'm getting all div tags with class .players.  The divs with class name .players have input fieds and a link field inside.  I want to be able to manipulate these (remove, add class, etc...)</p>
  <p>What I thought would work would be something like:</p>
  <pre><code>$(divarray[j]+' .link').hide();
  $(divarray[j]+' a').remove('.link');
  </code></pre>
  <p>But it's not working.  Any thoughts?  I'm sure it's something simple but it's my first time at JS :)</p>
  <pre><code>var divarray = $('#player-table &gt; .players');
          for( var j = 0; j &lt; 10; j++){
          $(divarray[j]).removeClass(&quot;players&quot;);
          $(divarray[j]).addClass(&quot;selected_players&quot;);
          $('#debug').append(divarray[j]);
          $(divarray[j]+' a').hide();
      }
  </code></pre>