var
textval = $(
"#text_id"
).attr(
"value"
);
var
textval = $(
"#text_id"
).val();
var
valradio = $(
"input[type=radio]:checked"
).val();
var
item = $(
'input[name=items]:checked'
).val();
var
checkboxval = $(
"#checkbox_id"
).attr(
"value"
);
var
selectval = $(
'#select_id'
).val();
$(
"#text_id"
).attr(
"value"
,
");//清空内容
$("
#text_id").attr("value",'test');//填充内容
$("
#chk_id").attr("checked",");//使其未勾选
$(
"#chk_id"
).attr(
"checked"
,
true
);
if
($(
"#chk_id"
).attr(
'checked'
)==
true
)
$(
"input[type=radio]"
).attr(
"checked"
,
'2'
);
$(
"#select_id"
).attr(
"value"
,
'test'
);
$(
"testtest2"
).appendTo(
"#select_id"
)
$(
"#select_id"
).empty();
var
item = $(
'input[name=items]:checked'
).val();
var
item = $(
"select[name=items] option:selected"
).text();
$(
'#select_id'
)[0].selectedIndex = 1;
$(
'input[name=items]'
).get(1).checked =
true
;
$(
"form"
).each(
function
(){
.reset();
});