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 :: discord.js how to kick a user 
Javascript :: comment in vue js 
Javascript :: nvm check version 
Javascript :: ng serve without reload 
Javascript :: change text using javascript 
Javascript :: how to redirect in ionic react 
Javascript :: javascript find diff in nested objects node js 
Javascript :: change icon sapui5 
Javascript :: what is JSArray 
Javascript :: node:internal/modules/cjs/loader:936 throw err; ^ 
Javascript :: slide right jquery 
Javascript :: update node mac 
Javascript :: javascript split array into chunks 
Javascript :: Delete spaces in text in javascript 
Javascript :: process memory usage javascript 
Javascript :: how to delete first key in hashmap in javascript 
Javascript :: remove item from array by id 
Javascript :: easyui datagrid double click cell 
Javascript :: drupal 8 node has field 
Javascript :: javascript lerp 
Javascript :: Iterate Odd Numbers With a For Loop 
Javascript :: create hash password in js 
Javascript :: mouseevent clientx javascript 
Javascript :: p5js class 
Javascript :: console.clear js 
Javascript :: tagname js 
Javascript :: angular httpheaders example 
Javascript :: @jsonignore unrecognized field 
Javascript :: go to nextelementsibling 
Javascript :: To set the text of button using Jquery 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =