jQuery select操做控制方法小結

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