jquey判断radio是否选定(checked)的一种写法

写法太多了,
今天突然觉得这个写法满好的

if ($("#stgd:checked").length>0)
{
alert('http://www.dc9.cn');
}

if ($(":radio:checked").length>0)
{
alert('http://www.dc9.cn');
}

3 comments

  1. 沙漠 说道:

    最近要学这个东西!谢谢

  2. I just want to say I am beginner to weblog and really liked you’re website. More than likely I’m going to bookmark your blog . You surely have fantastic well written articles. Thanks a lot for sharing your website page.

  3. Loren Awai 说道:

    Terrific paintings! That is the type of information that are supposed to be shared around the net. Shame on the search engines for not positioning this post higher! Come on over and visit my web site . Thanks =)

发表评论

电子邮件地址不会被公开。