How to get span value jquery
<p>I'm trying to get spans text by passing the value of span id to the function like this :</p>

<pre><code>function getDetails(testDetailId){
alert(jq("#"+testDetailId).text());
}
</code></pre>

<p>And I always get null alerted when the click is invoked :</p>

<pre><code>jq("table tr").click(function(){
var testDetailId = jq(this).attr("id");
getDetails(testDetailId);
}); 
</code></pre>

<p>I use jquery no conflict :</p>

<pre><code>var jq = jQuery.noConflict();
</code></pre>

<p>some html :</p>

<pre><code>&lt;span id="2"&gt;[{"testId":22,"testPerfReports":[]}]&lt;/span&gt;
</code></pre>

<p>Any ideas ?</p>
