changed attr('disabled' to prop('disabled'