how can get only numbers from the text using jquery
<p>I want to get only the numbers(123) not the text(confirm), here is my code</p>

<pre><code>&lt;p&gt;123confirm&lt;/p&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){  
  $(p).click(function(){  
    var sd=$(this).text();  
    alert(sd);
  });
});  
&lt;/script&gt;
</code></pre>
