我想使用 jQuery 在 Div 中添加一些文本和一个 asp: 按钮。
代码:
Hi, <p> Are you sure you want to go ahead</p><p>Please ignore this warning if this is not the first time you are logging in</p>
<asp:button ID="btnProceed" runat="server" Text="Proceed"></asp:button>
执行:
jQ('#proceedDiv').append("<div> Hi, <p> Are you sure you want to go ahead</p><p>Please ignore this warning if this is not the first time you are logging in</p> <asp:button ID="btnProceed" runat="server" Text="Proceed"></asp:button></div>");
但我收到一条错误消息,提示“预期”
该错误是按钮代码开始的地方。单独使用文本(而不是按钮控件),代码可以正常工作。有人可以帮我解决吗?