Skip to content

How to create on blur validation in asp.net MVC

Murugappan Mn

Asked Sep 7, 2015, 5:38 AM EDT2 answers
Share
LinkedInX
Hi frnds,
       Im working on a simple asp.net MVC.
My view consist of name ,no and some fields with validation messages(char should not exceed  30,10 digit mobile like that).
The problem is validation message is printed only when i post a request.What should i do to display a validation error as soon as I move from one field to another.
         Please help me solve the problem.thanks in advance. 

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sathish Kumar
    +1
    Hi,
     
          Using "JQuery" you can achieve the validation on controls blur event. I think you are using Asp.Net validation right now.  try  to use jquery.
    +1
  • 0
    Can You give the jquery code that will perform this action...
    0