I've thoroughly looked for an answer but everything seems to only give me half of what I need, which is how I managed to get this started. What I'm trying to do is enable a dropdown menu when a checkbox is checked, but keep it disabled otherwise. I'm not really sure how to call the function in the tag, but then again i'm not really sure it's working.
function .onCheckChange() {
if ($("#partoption2").is(':checked')) {
$("#parttwoqty").attr('disabled', 'disabled');
$("#partoption2").val("TRUE");
} else {
$("#parttwoqty").attr('disabled');
$("#partoption2").val("FALSE");
}
}
This is the fiddle: http://jsfiddle.net/xjn3Q/1/
Thanks!