Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery set attribute readonly

// jQuery < 1.9
$('#id').attr('readonly', true);

// jQuery >= 1.9
$('#id').prop('readonly', true);
Comment

add readonly attribute jquery

$(input).attr('readonly', true);
Comment

PREVIOUS NEXT
Code Example
Javascript :: create json server and run command 
Javascript :: jquery unselect option 
Javascript :: open ilnk target js 
Javascript :: how to uncheck a checkbox in jquery 
Javascript :: shopify comment code 
Javascript :: js https redirect 
Javascript :: Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. 
Javascript :: react native build aab 
Javascript :: vimeo playback speed 
Javascript :: center element react native 
Javascript :: use recursion to create a range of numbers 
Javascript :: reset radio button jquery 
Javascript :: listerner content loaded js 
Javascript :: jquery remove first character from string 
Javascript :: implode js 
Javascript :: add 24 hours to string date javascript 
Javascript :: jquery click add class 
Javascript :: react place div at center of page 
Javascript :: Append text into a file nodejs 
Javascript :: dynamics crm javascript set field visible 
Javascript :: js download canvas as png 
Javascript :: createroot react 
Javascript :: br in react native 
Javascript :: javascript check if not undefined 
Javascript :: javascript urlencode json 
Javascript :: regular expression to remove empty lines after text 
Javascript :: js vanilla dom ready 
Javascript :: upgrade node version ubuntu 
Javascript :: update core-js 
Javascript :: how to convert string to kebab case in javascript 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =