I am using asp.net validation to validate my form and i want a javascript to disable my submit button when there are no validation errors
$().ready(function() {
$(".btn").click(function() {
$(".btn").attr("disabled", "disabled");
$(".btn").removeAttr('href');
});
});
atm the linkbuttonn will be disableded whenever its pressed.