“Readonly Attribut in HTML” Code-Antworten

Readonly Attribut in HTML von JavaScript

document.getElementById("yourID").readOnly = true; 
Mr. Samy

Lesen Sie nur Attribut in HTML

<!-- Using readonly attribute is use to prevent changing of input value. -->
Example:
<input type="text" name="username" value="ankur" readonly>
Ankur

Readonly Attribut in HTML

<!--The readonly attribute means that the value of input field is not editable
-->
<form action="">
<label for="country">Language:</label> 
	<input type="text" id="language" name="language" value="English" readonly>
	<input type="submit" value="Submit">
</form>
Mr. Samy

Ähnliche Antworten wie “Readonly Attribut in HTML”

Fragen ähnlich wie “Readonly Attribut in HTML”

Weitere verwandte Antworten zu “Readonly Attribut in HTML” auf HTML

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen