jQuery expression
<p>I know this is a bit silly question, but I still cannot find an answer, perhaps I am searching the keywords are not right. </p>

<p>I hope someone could correct my js expression.</p>

<pre><code>var id = idname;
$('#' + id).hide();
</code></pre>

<p>('#' + id) expression has error from console, I'd like to have $('#<strong><em>variable</em></strong>') what is the right expression <code>$('"#'+xerocon2013'"').</code></p>

<p>Thanks for someone could put me up</p>

<p>Update,</p>

<p>Sorry guys, I have dollar sign. 
the error is </p>

<blockquote>
  <p>unrecognized expression: #[object HTMLDivElement]</p>
</blockquote>

<p>I tested yesterday was fine, but just doesnt work today.. sigh. how odd. 
I through my code maybe not right.</p>

<p><strong>I just want to make sure my expression is correct.</strong> if there is no error with my expression then would be my code. </p>

<p>codes</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function(){
       $(window).bind("load", function () {
              var urlHash = window.location.href.split("#")[1];
                $('html,body').animate({ scrollTop: $('#' + urlHash).offset().top}, 1000);
    }); 
});
    &lt;/script&gt;

&lt;style type="text/css"&gt;
.space{height:800px;}
#anchor{font-size:25px;height:800px;display:block;}
&lt;/style&gt;



&lt;div class="space"&gt;&lt;/div&gt;
&lt;div id="anchor"&gt;This is anchor&lt;/a&gt;
</code></pre>

<p>Thanks everyone.</p>
