I have some code that disabled a button, using jquery it does:
$('#fishID').attr('disabled', 'disabled');
This seems to work in every browser (IE6, IE7, 8, 9, Chrome, Firefox) except Safari where it does not disable the button.
Should I be setting it to 'disabled', 'true' ? What’s the difference?
Is there a quirk with Safari that might explain this not working?
in jQuery 1.6+ you should use
.prop('disabled', true);, this should work for all.