Difference between 'readonly' and 'disabled' - HTML Tutorial

preview_player
Показать описание
In this video we take a look at the difference between the "readonly" and "disabled" attribute on HTML input fields.

Essentially, input fields with the "readonly" attribute are not editable but are sent to the server whereas "disabled" input fields are not editable and do not be sent to the server.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Is there a way to make preset value of input field readonly and after that it should be default. For example the first 2 digits already set as value of field should be readonly but numbers can be typed after that. Is this possible in any way??

prathsachdev
join shbcf.ru