That should work. I went through as part of the jQuery 2.0 update and changed cases like this to $search.prop("disabled"), which is the change suggested by the jQuery 1.9 upgrade guide.