티스토리 뷰
$('select').change(function(){
var selectValue = $(this).find('option:selected').val();
if(selectValue == 'etc'){
$(this).next('input').removeAttr('disabled');
}else{
$(this).next('input').attr('disabled', true);
$(this).next('input').val('');
}
})'WebPublisher' 카테고리의 다른 글
| [jQuery] list 더보기 버튼 (0) | 2022.05.12 |
|---|---|
| [jQuery] checkbox 체크 유무 따라 클래스 추가 / input 활성화 (0) | 2022.05.12 |
| [svg] 이미지 SVG 삽입하는 방법 + svg에 css 적용 (0) | 2022.04.01 |
| [slick] prevArrow, nextArrow (0) | 2022.03.25 |
| [eclipse] .gitignore (0) | 2022.03.25 |
공지사항

