$("#button").attr("disabled", true);
$('#btnSubmit').attr("disabled", false); or $('#btnSubmit').removeAttr("disabled");