Maison > Article > interface Web > JQuery操作tr和td内容的方法实例_jquery
<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>