+ 3
How to disable text in iput tag in a html
plz give me solution plz
3 odpowiedzi
+ 6
Hello, Azhar Shaha !
1. <input type='text' disabled='true'/>
2. <input type='text' readonly='true'/>
1. way completely disabled input, even from the side of javascript. The 2 way disabled the user from entering data, but you can use javascript
+ 4
For shorter code of Alexander Sokolov
Just put this:
1. <input type="text" disabled />
2. <input type="text" readonly />
The default value is true.
+ 2
Add the disabled="disabled" attribute