您的位置:首页 > Web前端 > JQuery

jquery radiobutton select change

2014-05-21 11:15 387 查看
                <asp:RadioButtonList ID="rbtResourceType" runat="server" class="radioItem" RepeatLayout="Flow" RepeatDirection="Horizontal" >

                        <asp:ListItem>代理招生</asp:ListItem>

                        <asp:ListItem>市场活动</asp:ListItem>

                        <asp:ListItem>老师推荐</asp:ListItem>

                        <asp:ListItem>学员推荐</asp:ListItem>

                        <asp:ListItem>其他</asp:ListItem>

               </asp:RadioButtonList>

        <script type="text/javascript">

            $(document).ready(function () {

                $(".radioItem").change(function () {                            

                    var selectedvalue = $("input[name='rbtResourceType']:checked").val();

                    alert(selectedvalue);

                });

            });
        </script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: