JavaScript inset variable into brackets
<p>when I alert btnName it is not fetching the attr name and instead using the text btnName. </p>

<pre><code>var btnName = orderBtn.attr("name");
var obj = {btnName:true,json:1};
</code></pre>

<p>I am sure this is possible, I just can;t figure it out. </p>
