I have the following script inside my asp.net mvc view: -
function disableform(id) { $('#' + id).prop("disabled", true); }
But the above function will only disable elements using Internet Explorer, but will not work on chrome or firefox, I also tried to write attr('disabled', 'disabled') instead of .prop("disabled", true); but this did not solve the problem.
my jQuery version is 1.7.1
So what could be the problem?
BR
john g
source share