If checked -> addClass
<p>I have input checkbox</p>

<pre><code>&lt;label for="edit-panes-uc-termsofservice-agreement-checkout-tos-agree-agreed" class="option"&gt;&lt;input type="checkbox" class="form-checkbox" value="agreed" id="edit-panes-uc-termsofservice-agreement-checkout-tos-agree-agreed" name="panes[uc_termsofservice_agreement_checkout][tos_agree][agreed]"&gt; I agree with the terms above&lt;/label&gt;
</code></pre>

<p>and I want to add class to element befcontentleft
when it will be checked. Tell me please solution. Thanks.</p>

<pre><code>if($('input#edit-panes-uc-termsofservice-agreement-checkout-tos-agree-agreed').is(':checked') {
     $('befcontentleft').addClass('green');
}
</code></pre>
