title: how to get class value of a span
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1227286/get-class-list-for-element-with-jquery">Get Class List for Element with jQuery</a>  </p>
  </blockquote>
  
  
  
  <p>how can i get the class value of a span inside a div?</p>
  
  <pre><code>&lt;div id="Check"&gt;
  
  &lt;span class="checked"&gt;
  
  &lt;input id="box" name="INbox" type="checkbox" value="1" /&gt;1&lt;br&gt;
  
  &lt;span&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>how to get the value of class="checked" from  on div="Check"?</p>
  
  <p>and use it like this</p>
  
  <pre><code>&lt;script&gt;
  var span = $('div#Outbound').find('span').attr('class');
  if ( span != "checked"){
  
  }
  &lt;/script&gt;
  </code></pre>