jquery 1.8.2 enable/disable submit button based on checkbox status
<p>I was able to get this working using jquery 1.6, but I upgraded to 1.8 and can't get it to work.  Here's the jfiddle: <a href="http://jsfiddle.net/3aFaA/" rel="nofollow">link</a></p>

<p>and the code:</p>

<p>HTML:</p>

<pre><code> &lt;form id="ad_form" method="post" action=""&gt;
    &lt;input type="checkbox" id="tosId" name="tos_name" style="padding:0; margin:0" &gt;&lt;/input&gt;       
    &lt;br /&gt;
    &lt;input type="submit" id="submitId" name="submit_name" value="Submit"  /&gt;&lt;/input&gt;
 &lt;/form&gt;​
</code></pre>

<p>jQuery:</p>

<pre><code> $('#submitId').attr('disabled', 'disabled');  

 function updateFormEnabled() 
     {
         if($('#tosId').prop('checked'))
         {
             $('#submitId').attr('disabled', '');
         } 
         else 
         {
             $('#submitId').attr('disabled', 'disabled');
         }
     }

 $('#tosId').change(updateFormEnabled);​
</code></pre>
