Verifying all text boxes are numbers in JQuery
<pre><code>$('#save').click(function(){
    ($('input[type=text]').each(function () {
        if (isNaN($(this).val())) {
            alert("Some of your values were not entered correctly.");
            return 0;
        }
    });
});
</code></pre>

<p>I can't figure out why this isn't working. Any suggestions?</p>

<p>Edit: Sorry for the misleading title--I need to make sure the text boxes contain ONLY numbers. </p>
