jquery pass parameter to custom validation function
<p>I wrote a custom method to validate whether price is valid. Eg. no alphabet etc. Hence I wrote a custom method. But I have no idea how to pass in value.</p>

<p>Method:</p>

<pre><code>function checkIsPriceValid(input)
{

   alert(input);
    return false;
}
</code></pre>

<p>The form validation</p>

<pre><code>$(function () { 
jQuery.validator.addMethod("checkIsPriceValid", function (value, element) {
  return checkIsPriceValid();
  //check whether checkbox dist and algo is checked
}, "Invalid number");  


$("#addProductForm").validate({
  errorPlacement: function (error, element) {
    //error.appendTo(element.prev());
    error.insertAfter(element);
  },
  rules: { 


productName: { 
  required: true

},
productCategory:{ 
  required: true

},
productDescription: {
    required: true
},
productOrginalPrice:{
    required: true,
    checkIsPriceValid: this.val()
}
</code></pre>
