username@email.com
2025-03-31 1be1829cbb03b11d10a800ebb8ad72eb9241a103
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AATest.aspx.cs" Inherits="CY.WebForm.Pages.business.AATest" %>
 
<!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 id="Head1" runat="server">
    <title>测试</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script type="text/javascript">
        $(function () {
            $(".bhbhbhbh").click(function () {
                if ($(this).val() == "1") {
                    $("#selTestEdit").attr("editable", "true");
                    $("#selTestEdit").render();
                } else {
                    $("#selTestEdit").attr("editable", "false");
                    $("#selTestEdit").render();
                }
            });
 
            $("#Getval").click(function () {
                var type = $("#selTestEdit").attr("editable");
                if (type == "true") {
                    var text = $("#selTestEdit").attr("editValue");
                    if (!text) {
                        text = $("#selTestEdit").attr("Value");
                    }
                    alert(text);
                } else {
                    var text = $("#selTestEdit").attr("Value");
                    alert(text);
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
        <tr>
            <td><input type="radio" name="xvxvx" value="1"  class="bhbhbhbh"/>启用 <input type="radio" name="xvxvx" value="2"  class="bhbhbhbh"/>禁止
            <br />
            <input type="button" value="查看值" id="Getval" />
            </td>
        </tr>
        <tr>
            <td>
                <select id="selTestEdit" editable="true">
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                </select>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>