I'm switching from jquery version 1.5.2 to 1.9 and my disable buttons arent working. They should enable after the form fields are populated and give the option to remove or save. This isnt working. I've tried in all browsers also. Here's the code.
Asked
Active
Viewed 486 times
-1
-
See [this](http://stackoverflow.com/questions/6048022/jquery-attrdisabled-disabled-not-working-in-chrome) and [this](http://stackoverflow.com/questions/5874652/prop-vs-attr). – Jasen Oct 03 '14 at 17:47
2 Answers
2
I think it is a property:
$('#btnDel, #save').prop('disabled',true);
$('#btnDel, #save').prop('disabled',false);
Take a look at this SO answer to gain insight into the differences between attr and prop:

Community
- 1
- 1

superUntitled
- 22,351
- 30
- 83
- 110