单选框和下拉框的jquery操作
单选框
<input type="radio" name="rdSendType" value="email" checked="checked" /> 邮件
<input type="radio" name="rdSendType" value="paper" /> 纸质
单选框选中状态改变
$("input[name=rdSendType]").change(function () {
var val = $(this).val();
alert(val);
});
获取单选框的值
var val2 = $('input[name="rdSendType"]:checked').val();
下拉框
<select id="ddlOption" class="stateselect1" style=" width:150px; ">
<option selected="selected" value="dispatch"> 发文</option>
<option value="submission">送审</option>
<option value="aborted5">中止</option>
</select>
下拉框状态改变
$("#ddlOption").change(function () {
var val = $(this).children('option:selected').val();
});
获取下拉框值
var val = $("#ddlOption").val();
获取checkbox值
var val = $('input[name="chkIsOfflineCreate"]').attr("checked");