惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
V
V2EX
B
Blog RSS Feed
有赞技术团队
有赞技术团队
博客园 - Franky
美团技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
The Cloudflare Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
博客园 - 【当耐特】
The Register - Security
The Register - Security
大猫的无限游戏
大猫的无限游戏
D
Docker
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
博客园_首页
A
About on SuperTechFans
J
Java Code Geeks
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Recent Announcements
Recent Announcements
G
Google Developers Blog
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
F
Full Disclosure
Jina AI
Jina AI
H
Help Net Security

博客园 - *小小黄*

List<T>的Sort,Find,Exists等的使用(摘抄) 使用Telerik控件时出现Failed to create designer 的解决方法 GridView 笔记 - *小小黄* - 博客园 Telerik Rad 笔记 一 Silverlight学习笔记四:如何通过自定义ComboBox实现SelectedValue Silverlight学习笔记三:如何自定义DataGrid的Header Silverlight学习笔记二(续) Silverlight学习笔记二:DataGrid 服务器端分页、排序的实现 Silverlight学习笔记一:DataGrid如何处理鼠标的滚轮事件 SQL2005快照 在ASP.NET中使用HTTP压缩 Web注册表单设计样式的研究(下) Web注册表单设计样式的研究(上) 禁用aspx页面的客户端缓存 DataGrid中没有数据时显示表头(转) 在 Windows Vista 上安裝 Reporting Services IIS7中访问Access数据库报错的解决方案 解决“无法删除文件:无法读源文件或磁盘” AjaxControlToolkit中的CalendarExtender被遮挡的解决方法
JQuery常用代码1
*小小黄* · 2011-03-25 · via 博客园 - *小小黄*

//选择被选中Radio的Value值
$("input[name='radio_name'][checked]").val();

//根据Value值设置Radio为选中状态
$("input[name='radio_name'][value='要选中Radio的Value值'").attr("checked",true); 

//选择被选中CheckBox元素的集合 如果你想得到Value值你需要遍历这个集合
$("input[name='checkbox_name'][checked]");

//遍历被选中CheckBox元素的集合 得到Value值
$($("input[name='checkbox_name'][checked]")).each(function(){arrChk+=this.value + ',';});

//获取一个CheckBox的状态(有没有被选中,返回true/false)
$("#checkbox_id").attr("checked");

//设置一个CheckBox的状态为选中(checked=true)
$("#checkbox_id").attr("checked",true);

//设置一个CheckBox的状态为不选中(checked=false)
$("#checkbox_id").attr("checked",false);

$("input[name='checkbox_name']").attr("checked",$("#checkbox_id").attr("checked"));

//事件 当对象text_id获取焦点时触发
$("#text_id").focus(function(){//code...}); 

//事件 当对象text_id失去焦点时触发
$("#text_id").blur(function(){//code...});

//使文本框的Vlaue值成选中状态
$("#text_id").select();

 //ListBox 获取当前选择的值

var text = $("#lbRoom option:selected").text();
var value = $("#lbRoom option:selected").val();