js和Jquery對select的操做

jQuery獲取Select選擇的Text和Value: 語法解釋: 1. $("#select_id").change(function(){//code...});   //爲Select添加事件,當選擇其中一項時觸發 2. var checkText=$("#select_id").find("option:selected").text();  //獲取Select選擇的Text 3. v
相關文章
相關標籤/搜索