Answers for "html make input uneditable"

1

uneditable input html

<form 
      action="/action_page.php">

  <label for="country">Country:</label> 
  <input type="text" 
         id="country" name="country" value="Norway" readonly><br><br>

  <input type="submit" value="Submit">

</form>
Posted by: Guest on August-09-2021
3

read only attribute in html

<!-- Using readonly attribute is use to prevent changing of input value. -->
Example:
<input type="text" name="username" value="ankur" readonly>
Posted by: Guest on June-21-2020

Code answers related to "html make input uneditable"

Browse Popular Code Answers by Language