![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 july ![]()
![]() |
小妹是新手,剛接到一個需求,要將欄位值於DIV中傳出,不知該如何做,請各位大大指教! 於<div id="lazybox-root" productNum='<asp:Literal ID="Literal_RouteNo" runat="server"></asp:Literal>'> </div> 裡 productNum 的值是要取自 路線編號 "Literal_RouteNo", 請問該如何改較好,謝謝! <script type="text/javascript"> var _lbaq = _lbaq || []; _lbaq._company = 'MO-27767961-3'; (function() { var lba = document.createElement('script'); lba.type = 'text/javascript'; lba.async = true; lba.src = ' http://www.lazybox.com.tw/LB/js/lba/lba.min.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lba, s); })(); </script> </head> <body> <div id="lazybox-root" productNum='<asp:Literal ID="Literal_RouteNo" runat="server"></asp:Literal>'> </div> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <!-- container --> <div class="detail"> <tr> <th>路線編號:</th> <td width="140"><b><asp:Literal ID="Literal_RouteNo" runat="server"></asp:Literal></b></td> <th>出發日期:</th> <td><asp:Literal ID="Literal_GoDate" runat="server"></asp:Literal></td> </tr> </table> </div> |