how to assign variable value to jquery?
<pre><code>var s="attr"
var i=$(s)
// jQuery(elem).attr(attr,eval("elm"+attr));
jQuery(elem).$(s)(attr,eval("elm"+attr));//i tried this.
</code></pre>

<p>how to assign a variable name in the above code(in place of s) so that i need to add an attribute to the element "elem".</p>
