Quantcast
Channel: validator Discussions Rss Feed
Viewing all articles
Browse latest Browse all 20

New Post: Help adding custom validators to the jquery.validator-0.3.4.min.js

$
0
0

Hi mcm,

Thank you very much for your help, it seems alot more clearer to me now....i have one more question if thats ok, i have comma's in my interger so i need to strip those out before the parseint

Code:

"validnum": function () {
        var noComaVal = (this.value).replace(/,/g, '');
        var val = parseInt(noComaVal);
        return val >= 7500 && val <= 100000;
    }

do i use (this.value) to read the value from my  <asp:TextBox> string

The above code doesnt seem to work,

here is my asp:text box control

<asp:TextBoxID="txtBAmountCover"Validate="form"
validnum
="<p><b>Invalid Value.</b><br/> Please ensure your value is between <br/>7,500 and 100, 000.</p>"
require
="<p><b>Required Field Missing</b><br/>Please enter your desired Loan Amount.</p>">
</
asp:TextBox>

Thank again in advance, i am c# developer and new to jquery

regards
shy9010

 


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>