首页 >web前端 >js教程 >JQuery操作tr和td内容的方法实例_jquery

JQuery操作tr和td内容的方法实例_jquery

WBOY
WBOY原创
2016-05-16 17:40:581154浏览
复制代码 代码如下:

<br><br>    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><br>    <link href="../esstec_css/style.css" type="text/css" rel="stylesheet" media="all"><br>    <link href="../esstec_css/style.nk.css" rel="stylesheet" type="text/css"><br>    <script src="../js/jquery-1.7.2.min.js" type="text/javascript"></script><br>    <link href="../esstec_css/Default.css" rel="stylesheet" type="text/css"><br>    <link href="../esstec_css/BMS-Form.css" rel="stylesheet" type="text/css"><br>    <script type="text/javascript"><BR>        $(document).ready(function () {<BR>            $("#selEmployee").click(function () {<BR>                var $table = $("#tbProEmployee tr");<BR>                var len = $table.length;<BR>                var trid = "tbProEmployee" + len;<BR>                var strDeviceTr = "<tr id=" + trid + ">";<BR>                strDeviceTr += "<td ><input id=\"txtEmployeeInnerID\" type=\"hidden\" name=\"ProjectEmployee\" value=\"" + "123" + "\" /><input id=\"txtInnerID\" type=\"hidden\" name=\"ProjectEmployee\" value=\"\" />";<BR>                strDeviceTr += "<label id=\"txtEmployeeName\">" + "濮</script>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn