Telegram Group & Telegram Channel
⚙️ Что такое атрибут readonly в HTML и зачем он используется?

Атрибут readonly делает поле формы доступным только для чтения — пользователь может видеть значение, но не может его изменить. В отличие от disabled, такое поле отправляется с формой.

➡️ Пример:

<form>
<label>
Ваш ID:
<input type="text" value="12345" readonly>
</label>
<button type="submit">Отправить</button>
</form>


🗣️ Почему полезно:

readonly позволяет отображать данные, которые нельзя редактировать
• Поле остаётся активным для копирования и отправляется на сервер
• Часто используется в админках, профилях и при редактировании ограниченного набора данных
• Отличие от disabled: readonly не блокирует стили и взаимодействие полностью.

Атрибут readonly — удобный способ показывать неизменяемую, но отправляемую информацию в форме.

CodeBase | Frontend | #Основы
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/codebase_frontend/582
Create:
Last Update:

⚙️ Что такое атрибут readonly в HTML и зачем он используется?

Атрибут readonly делает поле формы доступным только для чтения — пользователь может видеть значение, но не может его изменить. В отличие от disabled, такое поле отправляется с формой.

➡️ Пример:

<form>
<label>
Ваш ID:
<input type="text" value="12345" readonly>
</label>
<button type="submit">Отправить</button>
</form>


🗣️ Почему полезно:

readonly позволяет отображать данные, которые нельзя редактировать
• Поле остаётся активным для копирования и отправляется на сервер
• Часто используется в админках, профилях и при редактировании ограниченного набора данных
• Отличие от disabled: readonly не блокирует стили и взаимодействие полностью.

Атрибут readonly — удобный способ показывать неизменяемую, но отправляемую информацию в форме.

CodeBase | Frontend | #Основы

BY CodeBase | Frontend


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/codebase_frontend/582

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

How Does Bitcoin Mining Work?

Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.

telegram from ms


Telegram CodeBase | Frontend
FROM USA