[jQuery] toggle with a check box to disable/enable inputs

[jQuery] toggle with a check box to disable/enable inputs


I want to in a form be bale to enable or disable portions of the form
when the user clicks ona check box. I have tried two different ways
but neither seems to work...
//the first does not let me even click the check box
$('#regular').toggle(
        function() {
            $('#regular-updates-options').removeAttr('disabled');
        },
        function() {
            $('#regular-updates-options').attr('disabled', 'disabled');
        }
    );
//this one allows me to click the box but nothing else happens the
form input of interest remains disabled.
$('#pw').click(function() {
    if ($('#price-watch').is(':disabled')) {
        $('#price-watch').removeAttr('disabled');
        }
    else {
        $('#price-watch').attr('disabled', 'disabled');
        }
    });