Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

validating textbox for the specific range value using javascript in asp.net

i am using javascript validation library file for validating textbox values. now i want to allow user to enter only value in between 0 and 9999999.99 . how to do this by using

$.validator.addMethod
?

like image 418
reshma k Avatar asked May 10 '26 12:05

reshma k


1 Answers

Why don't you just use ASP.NET Validators?

<asp:RangeValidator ID="rValidator" runat="server" 
        ControlToValidate="thatControl"
        MaximumValue="9999999.99"
        MinimumValue="0" 
        Type="Double" />
like image 186
kamui Avatar answered May 13 '26 01:05

kamui



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!