Click here to Skip to main content
15,177,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using Asp.net Mvc5,jquery 2.1,
I have a jquery UI dialog where i have following fields
http://api.jqueryui.com/dialog/[^]

1)number1 (textbox)
2)number2 (textbox)
3)save (button)

i want to check if number2 is less then number1 then donot post data but show error message that given input value is not valid
Posted
Updated 12-Dec-14 2:50am
v3
Comments
ZurdoDev 12-Dec-14 7:40am
   
What is your question?
Member 9129971 12-Dec-14 7:46am
   
How i can perform validations to check if number2 is less than number1
Member 9129971 12-Dec-14 7:47am
   
How i can perform validation in jquery dialog,how i can two textbox values if they are equal or not
Member 9129971 12-Dec-14 7:48am
   
How i can perform validations to check if number2 is less than number1
Member 9129971 12-Dec-14 8:17am
   
if i am unable to explain the problem then kindly inform me so that i can update my question
Chubby Ninja 12-Dec-14 12:34pm
   
Do you mean the length of number1 and number2? if they are textboxes you can not be sure they will contain just a numeric value so i guess you mean length, please provide the code you've got showing us the textboxes and button (and any js you've done relating to this..)

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