How to change element name on Page load with jquery?
<p>I need to know how i can change the name of a element. I have the id of that element say it is <code>"tester"</code> 
Ok the on page load problem could be solved this way. </p>

<pre><code> $(document).ready(function() {

 });
</code></pre>

<p>but how can i change the name of a element like this?</p>

<pre><code>&lt;div id="tester" name="fun"&gt;
&lt;/div&gt;
</code></pre>

<p>what i want as result</p>

<pre><code>&lt;div id="tester" name="tester"&gt;
&lt;/div&gt;
</code></pre>
