Check whether specific radio button is checked

后端 未结 7 1086
忘掉有多难
忘掉有多难 2020-12-14 01:10

I\'m having trouble after looking at the jQuery docs. I\'m just trying to return true/false in one my my jquery methods depending on the check of a certain radiobutton and

7条回答
  •  忘掉有多难
    2020-12-14 01:24

    1.You don't need the @ prefix for attribute names any more:

    http://api.jquery.com/category/selectors/attribute-selectors/:

    Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the ‘@’ symbol from your selectors in order to make them work again.

    2.Your selector queries radio buttons by name, but that attribute is not defined in your HTML structure.

提交回复
热议问题