How to fetch numeric values from paragraph tag?
<p>I am having N number of paragraph tag. Each paragraph tag will have some numbers. I want to fetch these numbers and store it in a variables. For Example:</p>

<pre><code>&lt;p id="id_1"&gt;1&lt;/p&gt;
&lt;p id="id_2"&gt;2&lt;/p&gt;
&lt;p id="id_3"&gt;3&lt;/p&gt;
&lt;p id="id_2"&gt;4&lt;/p&gt;
and so on...
</code></pre>

<p>These numbers are fetch from the input text field and stored inside paragraph tag. 
I want to store these numbers in a variable called numbers.</p>

<pre><code>&lt;input type="text" id="numerics" /&gt;      //using #numeric.val(); I stored the numbers in paragraph
</code></pre>

<p>And the js is:</p>

<pre><code>var numbers = parseInt($("#id_'+$('#numeric').val()+'").text().trim(), 10);
</code></pre>

<p>But it doesn't works. Thanks..</p>
