<div>
        <input />
    </div>

 

 <script language="javascript" type="text/javascript">
// <![CDATA[

        function Button1_onclick() {
            $("input").each(function () {
                if (this.type == 'radio') {
                    alert($(this).val());
                }
            });
        }

        function Button2_onclick() {
            //alert($("input[@type=radio]:checked").val());
            //alert($("input[name='rad']:checked").val());
            alert($("input[@type=radio]").val());
        }

// ]]>
    </script>

相关文章:

  • 2022-12-23
  • 2021-09-28
  • 2021-08-14
  • 2021-07-20
  • 2022-02-27
  • 2021-08-19
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-11-29
  • 2021-06-20
  • 2021-06-22
  • 2021-05-18
  • 2021-06-26
相关资源
相似解决方案