1、获取Select选择的Value值
方法一、$("#selectId").val(); 选择id=“selectId”的下拉框,再求值val();
方法二、$("#selectId option:selected").val();选择id="selectId"的下拉框中,被选取的option元素,再求值val();
方法一代码略微简单些。
1、获取Select选择的Value值
方法一、$("#selectId").val(); 选择id=“selectId”的下拉框,再求值val();
方法二、$("#selectId option:selected").val();选择id="selectId"的下拉框中,被选取的option元素,再求值val();
方法一代码略微简单些。