$input.disabled = true; or $input.disabled = "disabled"; Which is the standard way? And, conversely, how