javascript syntax error: uncaught expression
<p>I'm creating a web application, where I got a simple problem which I can't solve. I've put the code which creates the problem here: <a href="http://jsfiddle.net/rkumarnirmal/5w3FG/" rel="nofollow">http://jsfiddle.net/rkumarnirmal/5w3FG/</a></p>

<p>What's problem with the second alert() which should display this answer</p>

<pre><code>current
</code></pre>

<p>The problem is:</p>

<pre><code>var b = '.something';
var c = $(b).attr("id");
alert(c);
</code></pre>

<p>is not showing the id.</p>

<p>But, When I give </p>

<pre><code>var c = $('.something').attr("id");
alert(c);
</code></pre>

<p>It works. Have I done anything wrong with the selector?</p>

<p>Thanks!</p>
