Add an attribute on focus
<p>What is the best way to add an attribute to an <code>&lt;input /&gt;</code> on focus using js / jQuery?</p>

<p>Right now, off the top of my head, I would think</p>

<pre><code>$(document).ready(function(){
    $('input').focus(function(){
        $(this).attr(attributeHere);
    });
});
</code></pre>

<p>Is that correct? Does the attribute have to have quotes around it? </p>

<p>Right now, it is just going to be an attribute with no value. Value will be added later.</p>
