How to check if an input box contains only numbers or commas?
<p>Given:</p>

<pre><code> var input_val = $('#field').val();
</code></pre>

<p>How do I check whether input_val contains only numbers or commas? The solution must work in the 4 main browers.</p>
