728x90 반응형 SMALL selectbox1 jquery selectbox 처리 선택된 값 읽기 $("#myselect option:selected").val(); 선택된 내용 읽기 $("#myselect option:selected").text(); 선택된 위치 var index = $("#myselect option").index($("#myselect option:selected")); 항목 추가 $("#myselect").append("1"); $("#myselect").append("2"); option 변경 $("#myselect").html("Some orangesMore OrangesEven more oranges"); // 지정된 index 위치의 option 변경 $("#myselect option:eq(1)").replaceWith("Some apples"); $.. 2013. 12. 23. 이전 1 다음 728x90 반응형 LIST