Overriding a global variable in Javascript
<pre><code>$(document).ready(function(){    
        var min="1.2.2";          
        $.validator.addMethod('xyz', function(value, element, param) {        
                        alert(min);    
                        min=minAorB();// I want to call a function which will return the minimum among A and B.  
                        alert(min);    
                        return (validateAnmcComp(value,param));    
                        }, "Please enter a value less than or equal to "+min);  
        })(jQuery);  
</code></pre>

<p>I want the message to be displayed as "Please enter a value less than or equal to 1.4.5"</p>
