1
내 드롭 다운에 대해 정의 된 변화에 대한 방법이 -간단한 jQuery를 대입
$("[name=engine]").change(function() {
var selectedIndex = $(this).val() ;
var selectedValue = $("#engine option[value=333]").text()
alert("Change..." + selectedIndex + " - "+ selectedValue);
});
다음
대신 333
, 나는 내가 option[Value= ??]
에 할당 할 수있는 방법, selectedIndex
의 값을 대체 할 요소?
+1 특히 필수 따옴표를 삽입하는 경우. – lonesomeday