下面代码ie9和ie10不兼容,求解决办法,多谢
下面代码ie9和ie10不兼容,求解决方法,谢谢
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Hy_Default2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="Js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function () {
$("#bt1").click(function () {
$("#NewSelectTempSinger").empty();
var c = $("#selectTempSinger").clone();
c.find('select').each(function (a) {
$(this).children().each(function (a) {
if ($(this).val() == $("#tableTemp").find('select').eq(a).val()) {
this.setAttribute('selected', true);
}
});
})
c.find('input[type=text]').each(function (b) {
if ($(this).val() == $("#tableTemp").find('input').eq(b).val()) {
this.setAttribute('value', $("#tableTemp").find('input[type=text]').eq(b).val());
}
})
$("#NewSelectTempSinger").html(c.html());
})
})
</script>
</head>
<body>
<form id="form1" runat="server">
改变后:
<div id="NewSelectTempSinger" style="border: 1px solid red; padding: 5px;"></div>
<p></p>
请输入
<div id="selectTempSinger">
<table id="tableTemp" class="tableTemp" cellpadding="2px" cellspacing="0" style="border-collapse: collapse"
border="1px" bordercolor="#CCCCCC">
<tbody>
<tr>
<th class="operationClass">操 作
</th>
<th>用户名
</th>
<th>类型
</th>
<th>用户状态
</th>