Programming Note/JavaScript
[jQuery] value 값에 따른 HTML select의 option 선택
Skypotato(하늘감자)
2017. 10. 25. 18:01
$('#selectTest option[value="' + val + '"]').attr('selected', true);
$("#selectTest").val(val)