Web2 [JS/jQuery] 버튼 활성화/비활성화 (+ fieldset) input 태그의 disabled 속성 버튼 클릭 ➡ 활성화/비활성화 1. JS function btnActive() { const target = document.getElementById("btnId"); target.disabled = false; ] function btnDisabled() { const target = document.getElementById("btnId"); target.disabled = true; } 2. jQuery $(function() { //버튼 비활성화 //방법1 $("#btnId").prop("disabled", true); $("#btnId").attr("disabled", "disabled"); //방법2 //메서드 체인 방식 $("#btnId").click.. 2022. 3. 28. [JSTL] select option 값 유지 값 이동 순서 View ➡ Controller ➡ View HTML All Spring Summer Fall Winter [방법1] 삼항 연산자 All Spring Summer Fall Winter [방법2] 삼항 연산자 + JSTL 컨트롤러에서 넘어온 객체가 리스트인 경우 All ${list.listName} [방법3] JSTL All ${list.listName} - 출처: https://mi-nya.tistory.com/282 2021. 11. 3. 이전 1 다음