Please use `.prop('disabled', true)` instead. This is a special case where we don't use `.attr` so that it works cross-browser.
I think that internally it will set it to `disabled='disabled'`