Pete's Dev Life

  • Home
  • Patterns
  • Testing
  • Continuous Integration
  • .NET
  • ASP.NET
  • ASP.NET MVC

December 13, 2009

使用jQuery判斷RadioButton是否被選取

透過attr函式來判斷是否被選取
$("#<%= RadioButton.ClientID %>").attr("checked")

透過is函式來判斷是否被選取
$("#<%= RadioButton.ClientID %>").is(":checked")
於 3:57 PM
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
標籤: ASP.NET, jQuery, RadioButton

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Pete

View Pete's profile on LinkedIn

Blog Archive

  • ►  2021 (1)
    • ►  12 (1)
  • ►  2016 (5)
    • ►  04 (2)
    • ►  03 (3)
  • ►  2015 (5)
    • ►  06 (1)
    • ►  05 (2)
    • ►  04 (1)
    • ►  01 (1)
  • ►  2014 (27)
    • ►  11 (2)
    • ►  06 (3)
    • ►  05 (1)
    • ►  04 (5)
    • ►  03 (5)
    • ►  02 (5)
    • ►  01 (6)
  • ►  2013 (67)
    • ►  12 (1)
    • ►  11 (3)
    • ►  10 (1)
    • ►  09 (5)
    • ►  08 (4)
    • ►  07 (8)
    • ►  06 (9)
    • ►  05 (10)
    • ►  04 (10)
    • ►  03 (7)
    • ►  02 (2)
    • ►  01 (7)
  • ►  2012 (18)
    • ►  12 (6)
    • ►  11 (3)
    • ►  10 (5)
    • ►  09 (4)
  • ►  2011 (6)
    • ►  05 (2)
    • ►  04 (1)
    • ►  03 (3)
  • ►  2010 (23)
    • ►  12 (4)
    • ►  11 (10)
    • ►  10 (4)
    • ►  08 (1)
    • ►  07 (1)
    • ►  05 (1)
    • ►  03 (1)
    • ►  01 (1)
  • ▼  2009 (22)
    • ▼  12 (2)
      • ReportViewer控制項無法在頁面顯示的解決方法
      • 使用jQuery判斷RadioButton是否被選取
    • ►  11 (1)
    • ►  07 (5)
    • ►  06 (1)
    • ►  05 (2)
    • ►  04 (1)
    • ►  03 (1)
    • ►  02 (3)
    • ►  01 (6)
Awesome Inc. theme. Powered by Blogger.