if ( someCondition == true ) {
document.getElementById('btn1').setAttribute('disabled', 'disabled');
} else {
document.getElementById('btn1').removeAttribute('disabled');
}
'개발 > Web' 카테고리의 다른 글
[React] CSS 분기 꿀팁 (0) | 2021.11.26 |
---|---|
[Git] git@github.com: Permission denied (publickey). 해결 (0) | 2021.05.01 |
[JS] '?' & '||' (0) | 2021.01.22 |
[JS] Naming function (0) | 2021.01.22 |
Focus (0) | 2021.01.13 |