Possible Duplicate:
Get Class List for Element with jQuery
how can i get the class value of a span inside a div?
<div id="Check">
<span class="checked">
<input id="box" name="INbox" type="checkbox" value="1" />1<br>
<span>
</div>
how to get the value of class="checked" from on div="Check"?
and use it like this
<script>
var span = $('div#Outbound').find('span').attr('class');
if ( span != "checked"){
}
</script>