jQuery选择器赋值与取值
单选框radio
<input type="radio" name="jclx" value="1" title="当前期次" checked> |
// 获取radio选中的值 |
下拉框select
<select class="selector"></select> |
赋值和取值
// 设置value为pxx的项选中 |
select级联
$(".selector1").change(function(){ |
文本框
$("#txt").attr("value",'')// 清空内容 |
多选框
$("#checkbox_id").attr("value")// 获取值 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment