濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > asp.net使用jQuery獲取RadioButtonList成員選中內(nèi)容和值示例

asp.net使用jQuery獲取RadioButtonList成員選中內(nèi)容和值示例

熱門(mén)標(biāo)簽:福州人工智能電銷(xiāo)機(jī)器人加盟 電銷(xiāo)機(jī)器人 數(shù)據(jù) 宿遷智能外呼系統(tǒng)排名 ai電銷(xiāo)機(jī)器人對(duì)貸款有幫助嗎 400電話(huà)辦理信任翰諾科技 地圖標(biāo)注多少錢(qián)一張 怎樣給陜西地圖標(biāo)注顏色 廣州銷(xiāo)售外呼系統(tǒng)定制 云狐人工智能電話(huà)機(jī)器人

復(fù)制代碼 代碼如下:

%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web.Default" %>

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head runat="server">
    title>/title>
    script src="jquery-1.8.2.min.js" type="text/javascript">/script>
    link href="Base.css" rel="stylesheet" type="text/css" />
    style type="text/css">

    /style>
    script type="text/javascript">
        $(document).ready(function () {
            $("#%=rblHobbies.ClientID%> input[type=radio]").bind("change", function () {
                if ($(this).val() != "") {
                     $("#message").text("Text:" + $(this).next().text() + "  Value:"+$(this).val());
                }

            });
        });

    /script>
/head>
body>
    form id="form1" runat="server">
    div style="margin: 100px auto; width: 400px; height: 200px;">
        fieldset style="width: 400px; height: 150px">
            p>
                請(qǐng)選擇愛(ài)好/p>
            asp:RadioButtonList ID="rblHobbies"  runat="server" >

                asp:ListItem Value="1">音樂(lè)/asp:ListItem>
                asp:ListItem Value="2">籃球/asp:ListItem>
                asp:ListItem Value="3">美劇/asp:ListItem>
                asp:ListItem Value="4">電影/asp:ListItem>

            /asp:RadioButtonList  >
        /fieldset>
        br />
        div id="message" style="color:blue;">/div>
    /div>
    /form>
/body>
/html>

您可能感興趣的文章:
  • jQuery中select與datalist制作下拉菜單時(shí)的區(qū)別淺析
  • jquery ajax后臺(tái)返回list,前臺(tái)用jquery遍歷list的實(shí)現(xiàn)
  • 基于MVC5和Bootstrap的jQuery TreeView樹(shù)形控件(一)之?dāng)?shù)據(jù)支持json字符串、list集合
  • jQuery插件datalist實(shí)現(xiàn)很好看的input下拉列表
  • JqueryMobile動(dòng)態(tài)生成listView并實(shí)現(xiàn)刷新的兩種方法
  • CheckBoxList多選樣式j(luò)query、C#獲取選擇項(xiàng)
  • Jquery操作下拉框(DropDownList)實(shí)現(xiàn)取值賦值
  • jQuery接受后臺(tái)傳遞的List的實(shí)例詳解

標(biāo)簽:宜春 黃南 曲靖 新疆 綿陽(yáng) 焦作 大興安嶺 延安

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《asp.net使用jQuery獲取RadioButtonList成員選中內(nèi)容和值示例》,本文關(guān)鍵詞  asp.net,使用,jQuery,獲取,RadioButtonList,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《asp.net使用jQuery獲取RadioButtonList成員選中內(nèi)容和值示例》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于asp.net使用jQuery獲取RadioButtonList成員選中內(nèi)容和值示例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    玉山县| 彭山县| 阳新县| 额济纳旗| 满洲里市| 大安市| 庆安县| 昌乐县| 友谊县| 高台县| 台州市| 苏尼特左旗| 永清县| 十堰市| 墨江| 乌兰浩特市| 麟游县| 阜平县| 丰县| 宜都市| 浙江省| 监利县| 格尔木市| 大新县| 六安市| 江永县| 习水县| 河源市| 化州市| 开封县| 石河子市| 铁岭县| 白河县| 磐安县| 柯坪县| 北碚区| 安图县| 建水县| 定州市| 灵寿县| 和田县|