regular expression check if number is whole number or float i think
<p>Hi all I need an if and else statement that checks if two fields which are min and max are numbers and these numbers can be whole numbers like 0 or 12 or they could be 0.50 to 1,300.99 does anyone know how to check for numbers my code is in the following format:</p>

<p>jQuery:</p>

<pre><code>$(document).ready(function(e) {

    $('#price_range').click(function(e) {
        var price_min = $('#min').val();
        var price_max = $('#max').val();
        var error_msg = "";

        if(price_min.macth(.../) &amp;&amp; price_max.match(.../)) {
            error_msg = "Please enter a valid number."
        }else if(price_min &gt; price_max) {
            error_msg = "Min is greater than max."
        }
    }
</code></pre>
