Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

readonly attribute in html by javascript

document.getElementById("yourID").readOnly = true; 
Comment

readonly attribute 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>
Comment

PREVIOUS NEXT
Code Example
Javascript :: unique id generator 
Javascript :: js regex domain name 
Javascript :: javascript change web page title 
Javascript :: Javascript function to get the difference between two numbers 
Javascript :: reactdom is not defined 
Javascript :: Node.js: printing to console without a trailing newline 
Javascript :: react eslint error missing in props validation 
Javascript :: jquery scroll to top of div 
Javascript :: before in material ui style 
Javascript :: NullInjectorError: R3InjectorError(DashboardModule)[DatabaseService - DatabaseService - HttpClient 
Javascript :: yeet 
Javascript :: react native settimeout 
Javascript :: react material ui button router link 
Javascript :: each option select jquery 
Javascript :: Code to Unsubscribe all youtube channels. 
Javascript :: create button inside td tag javascript 
Javascript :: ReferenceError: fetch is not defined 
Javascript :: text to speech js 
Javascript :: js appendchild wait for callback 
Javascript :: javascript multiply arguments 
Javascript :: javascript convert number to hex 
Javascript :: react native local.properties 
Javascript :: javascript add new array element to start of array 
Javascript :: javacript open url in new tab 
Javascript :: if window undefined 
Javascript :: js check if value is not empty string 
Javascript :: javascript convert number to binary 
Javascript :: express js limit access based on rate 
Javascript :: angular get current time 
Javascript :: jquery validate if field exists 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =