html input becomes disabled after typing code example Example: disable input type button in html <input type="button" disabled value="Submit">