Jquery if checkbox is checked add a class
<p>I am trying to add a class when a checkbox is checked.</p>

<p>My jquery:</p>

<pre><code>$('input').attr("checked").change(function(){
$('div.menuitem').addClass("menuitemshow");
})
</code></pre>
