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: link
and the code:
HTML:
<form id="ad_form" method="post" action="">
<input type="checkbox" id="tosId" name="tos_name" style="padding:0; margin:0" ></input>
<br />
<input type="submit" id="submitId" name="submit_name" value="Submit" /></input>
</form>
jQuery:
$('#submitId').attr('disabled', 'disabled');
function updateFormEnabled()
{
if($('#tosId').prop('checked'))
{
$('#submitId').attr('disabled', '');
}
else
{
$('#submitId').attr('disabled', 'disabled');
}
}
$('#tosId').change(updateFormEnabled);