How to change id value using javascript? : <p><strong>I want to change and revert element id while onclick button.</strong></p>

<p><strong>Html</strong> : <code>&lt;p id="tprice"&gt;Price Total: $&lt;span id="order_total"&gt;0&lt;/span&gt;&lt;/p&gt;</code></p>

<p>Want to change and revert this id="order_total" to this id="rsorder_total" after click on this button:-</p>

<pre><code>&lt;input type="button" value="USD" id="myButton"&gt;&lt;/input&gt;
</code></pre>
