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 value of variable name in the above code(in place of s).Ie:-instead of adding attr(see the commented line for reference), i need to fetch the value from a variable.</p>
