![]() |
jQuery validation: display the focused field error message
Objective: I'd like to display the focused field error message in a container.
What I've done so far: Code:
<!DOCTYPE html>Problems:
|
Hii rain.
About problem 1 - when click on submit , you shuold display all errors , and not only the error for the input that was focused. by the way - after you click on submit - there is no input focused.. so if you want only the last one that was focused you should save it in some variable. For showing all errors use this code : Code:
showErrors: function (errorMap, errorList) {Code:
$("form input , form textarea").click(function () { |
Quote:
Quote:
Quote:
|
| All times are GMT +1. The time now is 12:08 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.