Click the button to set the number field to read-only.

Tip: To see the effect, try to type something in the number field before and after clicking the button.

Note: input elements with type="number" are not supported in IE 9 and earlier versions.