<%@ 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>
|