Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a textBox field in MVC,Single zero does not accept but when put mutile zero it is accept . Now my issue is when post the form data , I want to show the alert,If the text box contains any number of zeros using jquery or anything.

Example:this my <%=Html.TextBoxFor(model=>model.InvoiceNumber) %> control.In which if I enter multiple zero [i.e More that one zero] , that scenario I need to validate the textbox using jquery before posting the data

Regards,
venkat
Posted
Updated 10-Jun-15 1:52am
v2
Comments
Sergey Alexandrovich Kryukov 9-Jun-15 1:34am    
Not clear. Any code sample, more detailed explanation of the problem?
—SA
venkat167 10-Jun-15 7:51am    
this my <%=Html.TextBoxFor(model=>model.InvoiceNumber) %> control.In which if I enter multiple zero [i.e More that one zero] , that scenario I need to validate the textbox using jquery
John C Rayan 15-Jun-15 11:31am    
Is it business requirement to use JQuery. You can use MVC server validation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900