It is not useful to post your ASP, PHP, or other templates that allow you to mix server-side code with HTML.
The code runs on your server, and replaces itself with some text or HTML (or perhaps even some Javascript) before being sent to the browser. That's what the browser has to work with.
Browsers do not run ASP, PHP, etc. code.
If you are using these sorts of templates, and you want to post all or some of your page here, use your browser's "view source" to see what your server sent to the browser.
Make sure you understand which code runs on your server and which code runs in the browser.
Moving/cloning some HTML nodes doesn't run your server-side code. The server code came and went before the browser ever got the page!
I'd guess that:
<asp:TextBox ID="EmailAddress" Name="email" TabIndex="21" CssClass="gen-textbox4 animatedPlaceholderInput" runat="server" MaxLength="50"></asp:TextBox>
generates something like:
<input id='dsfkjsdfksdfj888' name='email' tabindex='21' class='gen-textbox4' maxlength='50'>
And there's the rub: *something like*.
It might generate some inline on event attribute, it might generate some Javascript code inserted somewhere else. We don't know, because we are not your server!
It can be difficult to get ASP to play nice with Javascript libraries and frameworks. You need to talk to ASP experts to sort it out. ASP experts aren't here.