How to Change Textbox name before Submit in Javascript
<p>I want to change a textbox name before form submit</p>

<p>My text box:</p>

<pre><code>&lt;input type="text" name="txtUserName" id="txtUserName" /&gt;
</code></pre>

<p>I make this function for java script:</p>

<pre><code>function abc()
{
    document.getElementById('txtUserName').name="ID_USERNAME"
    document.loginform.action = "url";
}
</code></pre>

<p>I tried <code>document.getElementById('txtUserName').name="ID_USERNAME"</code> but not working</p>

<p><strong>Note</strong>: Please Do not use JQuery Function</p>
