프론트엔드 센트럴파크 (☞゚ヮ゚)☞

disabled, readonly 본문

HTML

disabled, readonly

자라나라나무나무나 2022. 6. 4. 20:45

disabled

: input이 비활성화 된다.

  field 자체가 form데이터로 전송이 될 때 값이 포함되지 않는다. (url 뒤에 붙는 값)

 

readonly

: 값을 입력할 수 없게된다.

  form데이터로 값은 전송이 된다.(url 뒤에 붙는 값)

  value를 통하여 기본값을 넣어줄 수 있기 때문에 값이 전송이 된다.

 

 

See the Pen Untitled by Jeong-Dagyeong (@jeong-dagyeong) on CodePen.

'HTML' 카테고리의 다른 글

<button>  (0) 2022.06.04
input type="number" 속성에서의 min과 max, step  (0) 2022.06.04
autocomplete, required  (0) 2022.06.04
<input> - radio  (0) 2022.06.01
<input> - range  (0) 2022.06.01
Comments