jquery validation issues
<p>I am a newbie for jquery and currently have a problem on jquery validation. Here is my codes:</p>

<pre><code>jQuery(function(){
                jQuery("#qty").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "please enter buying amount"
                });
                jQuery("#qty").validate({
                    expression: "if (!isNaN(VAL)) return true; else return false;",
                    message: "Only integer is valid for amount"
                });

                jQuery("#qty").validate({
                    expression: "if (VAL &gt; 0) return true; else return false;",
                    message: "At least buy 1 share"
                });
                jQuery("#qty").validate({
                    expression: "if (VAL &lt;= jQuery('#division').val()) return true; else return false;",
                    message: "You have insufficient amount to purchase"
                });
</code></pre>

<p>and another relevant part:</p>

<pre><code>&lt;td&gt;&lt;input type="text" name="quantity" size="10" id="qty" value=""/&gt;
&lt;?php 
$division = $available/$rate;
?&gt;
</code></pre>

<p>Now the problem is I cannot detect whether the quantity input is decimal. If it is decimal, I want to show error message: only integer is valid for amount. And also, when I compare the quantity input to $division, no matter what positive integer I enter, it will always show the error message "you have insufficient amount to purchase". Can anyone give me some advice? Say thank you in advance!</p>
