How do I call this function on blur(), using JQuery? RESOLVED!
<p>I have this function, see below:</p>

<pre><code>function checkStartPrice (){
    if ($('#StartingPrice')[0].value.length == 0){
        alert("The 'Starting Price' cannot be left empty!");
        return false;
     } else {
        var BuyItNowPrice = parseFloat($('#BuyItNowPrice').val());
        var StartingPrice = parseFloat($('#StartingPrice').val());
        var Reserve = parseFloat($('#Reserve').val());
        if((BuyItNowPrice &lt;= StartingPrice) &amp;&amp; (StartingPrice &gt; 0)){
            alert("The 'Buy It Now' price must be higher...");
            return false;
        }
        if((Reserve &lt;= StartingPrice) &amp;&amp; (StartingPrice &gt; 0)){
            alert("Your 'Reserve Price' must be higher...");
            return false;
        }
        return true;
    }
}
</code></pre>

<p>Question: How do I call it on blur? I tried this code below but it doesnt seem to work</p>

<pre><code>$('#StartingPrice').blur(function(){
    checkStartPrice();
});
</code></pre>

<p>Any help would be greatly appreciated, Thanks</p>

<hr>

<p>I found a ERROR &amp; fixed it...RESOLVED :)</p>
