Remove class if checkbox is checked
<p>I want that <code>onload</code> the <code>&lt;span&gt;</code> and <code>&lt;checkbox&gt;</code> classes to be blank:</p>

<pre class="lang-php prettyprint-override"><code>&lt;span id="checkboxx_&lt;?php  echo $nrs['id'];   ?&gt;" class="highlight" &gt; 
   &lt;input type="checkbox" class="checkboxx" id="checkboxx_&lt;?php  echo $nrs['id'];   ?&gt;" style="padding: 0px; margin: 2px;"   &lt;?php echo $value == 1 ? 'checked="checked"' : ''?&gt;&gt;                       
&lt;/span&gt;
</code></pre>

<p>i have tried this </p>

<pre class="lang-php prettyprint-override"><code>&lt;?php
if($value==1)
{
?&gt;
  &lt;script&gt;
    if (this.checked) {
      document.getElementById("checkboxx_&lt;?php  echo $nrs['id'];   ?&gt;").className = "";
    }
  &lt;/script&gt;
&lt;?php
} else {
?&gt;
   &lt;script&gt;$j("#"+pos).addClass("highlight");&lt;/script&gt;
&lt;?php
}
</code></pre>

<p>but this doesn't work.</p>
