<strong>js部分</strong>: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="79150" class="copybut" id="copybut79150" onclick="doCopy('code79150')"><u>複製程式碼</u></a></span> 程式碼如下:<eckboxs document.getelementsbytagname>for(var i=0;i<checkboxs.length class="codebody" id="code79150">{ <br>if(checkboxs[i].type=="checkbox" && checkboxs[ i].checked==true){ <br>var trobj=checkboxs[i].parentNode.parentNode; //找到tr節點<br>if(trobj.rowIndex > 0){ <br>var tdobj=trobj.children ; <br>var amount = tdobj[3].children.item(0).value; //找到td節點的value 對應第4個td <br>alert(amount); <br>} <br>} <br>} <br><br> <br><br>html的repeater</checkboxs.length></eckboxs> </div> <br><strong></strong><br><div class="codetitle">複製程式碼<span><a style="CURSOR: pointer" data="70864" class="copybut" id="copybut70864" onclick="doCopy('code70864')"><u></u>複製程式碼</a></span> </div> <div class="codebody" id="code70864">複製程式碼<br><br><br><br>複製程式碼<br><br><br><br>複製程式碼<br><br><br><br>複製碼<br><br> <br><repeater id="repeater1" runat="server"> <br><itemtemplate> <br><tr class="TableDetail2"> <br><td> <br> <input type="checkbox" name="checkboxs" id="checkbox" runat="server" width="15" value='<%# Container.DataItem("mocode") %>'> <br> </td> <br><td class="nowrap"> <br><imagebutton id="btnkxcode" runat="server" width="15" imageurl="../image/search.jpg" commandname="btnkx ">Height="15"></imagebutton> <br><textbox id="ckxcode" runat="server" cssclass="TextBox1" text='<%# Container.DataItem("itemtype ") %>'> </textbox> </td> <td class="nowrap"> <imagebutton id="btnkxname" runat="server" width=" 15" imageurl="../image/search.jpg" commandname="btnkxn">Height="15"></imagebutton> <textbox id="ckxname" runat="server " cssclass="TextBox1" text='<%# Container.DataItem("itemname") %>'> </textbox> </td> <td class="nowrap"> <textbox id="amount" runat="server" cssclass="TextBox1" text='<%# Container.DataItem("ysamount") %>'> </textbox> </td> </tr> </itemtemplate> </repeater> </div>