$("select[selected='selected']").val() ;$("select option:selected").val() ;
div id="wrap"> <input type="radio" name="payMethod" value="1" />支付宝 <input type="radio" name="payMethod" value="2" />财务通 </div> 获取一组单选按钮对象:var obj_payPlatform = $('#wrap input[name="payMethod"]'); 获取被选中按钮的值 :var val_payPlatform = $('#wrap input[name="payMethod"]:checktable 获取第几列的值
- //点击“弹出框”选择“确定”后的业务处理
- $("#dialog-confirm").dialog({
- autoOpen:false,
- resizable:false,
- height:150,
- modal:true,
- buttons:{
- "确定":function(){
- var au_id = $('#users').find('tr:eq(' + (trNum) + ')').find('td:eq(0)').text(); //获得对应第一列的ID值
- //业务处理省略
- ……
- },
- "取消":function(){
- $(this).dialog("close");
- }
- }}
- );
radio select 等各种取值
最新推荐文章于 2019-10-29 16:56:36 发布