Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to set element readonly in jquery

$("#field").attr('readonly','readonly');
Comment

how to set element readonly using jquery

To make an input readonly use: $("#fieldName"). attr('readonly','readonly');
Comment

PREVIOUS NEXT
Code Example
Javascript :: moment get tomorrow date 
Javascript :: media query js 
Javascript :: colors in node js console 
Javascript :: javascript month name 
Javascript :: f.select on change jquery 
Javascript :: check if click is inside div javascript 
Javascript :: javascript remove all spaces from string 
Javascript :: flash input 
Javascript :: javascript get url 
Javascript :: allow paste js code 
Javascript :: regex remove html tags 
Javascript :: scroll to element jquery 
Javascript :: exclude extension from filename javascript 
Javascript :: zip code regex 
Javascript :: javascript hide element by class 
Javascript :: js window resize listener 
Javascript :: Remove style attribute from div with jquery 
Javascript :: sort array by string length javascript 
Javascript :: angular clone array without reference 
Javascript :: update version of node gyp 
Javascript :: regex password uppercase lowercase number special character 
Javascript :: radio button onchange jquery 
Javascript :: on keyup jquery 
Javascript :: invalid host header vue 
Javascript :: regex of date yyyy-mm-dd 
Javascript :: 50 50 chance javascript 
Javascript :: c3 json from string 
Javascript :: sum of array of objects javascript 
Javascript :: update nodejs 
Javascript :: just number regex js 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =