$("#selectBox").on("change", function(){
//selected value
$(this).val();
$("option:selected", this).attr("value");
//selected option element
$("option:selected", this);
$("option:selected", this).text();
$(this).find("option:selected").text();
});
-
[JavaScript] select박스에서 값 변경시 이벤트 처리
답글 남기기