change name of checkbox onclick
<p>I need to change the name attribute of a checkbox when its clicked using javascript but Im not sure how to do this. This is what Ive tried:</p>

<pre><code>$("#first").click(function() {

$(#first).attr("name", thatName);

alert(#first).attr("name");
});
</code></pre>

<p><code>&lt;input type="checkbox" name="thisName" id="first"&gt;</code></p>

<p>No good!  Any help is appreciated.</p>

<p>Edit... i think i got it!... Can anyone provide feedback on this solution:</p>

<pre><code>$(document).ready(function(){
    $("#first").click(function() {
        $("#first").attr("name", "chump");
        alert($("#first").attr("name"));
    });
});
</code></pre>

<p>It works, but Id like to hear anyones thoughts on whether it might present problems.</p>
