[javascript] html readonly true/false

|
html :
document.getElementById("purchaseYear").readOnly=true; //readonly 켬

document.getElementById("purchaseYear").readOnly=false;  //readonly 끔

document.getElementById("purchaseYear").style.backgroundColor="#ccccff"; //해당ID의 배경색을 변경

'저장용 > javascript' 카테고리의 다른 글

[javascript] 함수 오버로딩하기  (0) 2015.01.08
And