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>");
しかし、期待されると言ってエラーが発生します'('
そのエラーは、ボタンコードが始まるところです。テキストだけで(ボタンコントロールではなく)、コードは正常に機能します。誰かが私がそれを修正するのを手伝ってもらえますか?