title: jQuery not working while selecting and changing an objects class
body: <p>I´ve tried a lot of code to select my #slider and its children which are images and change their class, my last try is this one:</p>
  
  <h1>INDEX.php</h1>
  
  <p></p>
  
  <pre><code>   &lt;center&gt;
              &lt;div id="slider"&gt;
  
                  &lt;image class="slider" id="shown" src="img/img1.jpg"/&gt;
                  &lt;image class="slider" id="notShown" src="img/img3.jpg"/&gt;
                  &lt;image class="slider" id="notShown" src="img/img2.jpg"/&gt;
  
              &lt;/div&gt;
     &lt;/center&gt;
  
              &lt;script type="text/javascript" src="js/slider.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <h1>SLIDER.js</h1>
  
  <pre><code>$(function(){
  
              console.log("HEY");
              $('#slider image').each(function(){
                     $(this).removeAttr('class');
                     });
              });
  </code></pre>