$("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");
- }
- }}
- );