WebPublisher
[jQuery] select box 값 따라 input 활성화
amanda
2022. 4. 20. 11:10
$('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('');
}
})