I made some incremental changes to the previous version of jQuery Form Validation and added some new features to the same.
New features in version 1.1
- Validations of radio-buttons and check-boxes now possible
- Added jquery.validation.functions.js to modularize addition of new validation functions.
- New validation functions added
- isValidDate(year, month, day): It takes in three parameters the year(i.e. full year) of the date, the month of the date and the day part of the date and returns false if its not a valid date and true if valid. It includes checking of leap years. For example: 02-29-2008 will show as valid but 02-29-2009 as invalid.
- isChecked(id): It takes the id of the container containing the group of check-boxes or radio-buttons and returns false if none of the children were checked and true if at-least one was checked.
Download and Demo
Advanced Demo: Click Here
Download: Click Here
Project Repository: Click Here
A new release of the
118 replies on “jQuery Live Form Validation Version 1.1”
Hi, may I know how to validate confirm password field? I need to validate that the confirm password field should be the same as input in the password field.
Thanks
Hi azril,
Thanks for your comment. I have added a password and confirm password field example to the advanced demo of jQuery Live Form Validation ( https://www.geektantra.com/projects/jquery-form-validate/advanced_demo/ ). Just check its source to have a better understanding. Its actually very simple. In the expression for the confirm password validation just put an if statement to check if it matches the password.
GeekTantra
[…] Go here to read the rest: jQuery Live Form Validation Version 1.1 | GeekTantra […]
[…] This post was Twitted by LaFermeDuWeb […]
mm… attractive ))
Hey how to do validation for url please its urgent
Is it possible to do custom validation, something like; if text field is empty and drop down not selected then display message?
Can’t get isValidDate to work for months 08 and 09.
I double checked it with 8-31-2010 and 9-30-2010 it is working fine. Please check your implementation.
I can’t get checkbox validation to work.
I always get “not checked” error message no matter if checked or not.
Is there a solution. I double checked, and it seems to me that everything conforms to your example.
Hi Nikola
Can you show me the script your are working on?
I guess it might be a minor config issue.
Regards,
GeekTantra
I was looking everyehwre and this popped up like nothing!
YsK0dA yrtxpbubflul
I declare that I have read and I agree with the Terms & Conditions
and I’ve put your default script from demo changed to find #tcaccept in my header
jQuery(“#tcaccept”).validate({
expression: “if (isChecked(SelfID)) return true; else return false;”,
message: “Please check this to agree to Terms & Conditions.”
});
I always get the error message. No matter if it’s checked or not
ok. just lost my html code above. sorry.
I have just a straight input type=checkbox name=tcaccept id=tcaccept value=on
I removed quotes and other special chars
Thanks in advance
Nikola
Hi Nikola,
If you observe the advanced demo carefully. The validation example for checkboxes given there is for a set of checkboxes out enclosed in the id=”ValidCheckbox”. You have two options to implement your case, either use it with the enclosing id or write the following expression:
jQuery(“#tcaccept”).validate({
expression: “if (jQuery(‘#tcaccept’).is(‘:checked’)) return true; else return false;”,
message: “Please check this to agree to Terms & Conditions.”
});
I guess the above solution will fit your needs perfectly.
Regards,
GeekTantra
hi, very nice solution on the radiobuttons. I have a problem. I make several forms on a page via mysql. They are in a hidden div. When clicked on a link one of them wil show. In every form are radiobuttons with different id’s. How can I pass those id’s to the script so I have to use only one script for all the forms.
excellent tutorial
The reg expression for validating no spaces is not working: /^[\S]*$/
Excellent script, but I was having some strange behaviour when combining this with jQuery UI’s Datepicker option.
The problem was that if a validation error had been triggered and you then proceeded to set a date the error message was not cleared unless you again clicked in and out of the field (or just ignored the error and carried on, but this is not helpful to the end user!). To overcome this I added ‘change’ to the bind parameters in jquery.validate.js line 46.
Before: jQuery(this).bind(‘focus keypress’, function(){
After: jQuery(this).bind(‘focus keypress change’, function(){
I have not tested all of the features of the validate script to see if this causes any problems elsewhere but thought I would post in case it helps anyone else as it solves the problem for me.
GeekTantra, hope you don’t mind my tinkering with your code.
Is there any solution to expand validation form by place the code that adding two random numbers
please 🙂
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
var c = a + b
function Draw()
{
document.write( a + ” + ” + b +” “);
document.write(“”);
}
.
.
.
jQuery(“#adding”).validate({
expression: “var d = document.getElementById(‘adding’).value; if (d == c) return true; else return false;”,
message: “Enter valid number…”
});
.
.
.
in html enter these DrawBotBoot()
Its good but i found one issue with live validation of check-box and radio on Google Chrome.
its only working on submit button click but as live validation of checkbox and radio its not working. with other browsers its working as expected.
Any solution ?
how to show error message below the input fields, please tell me urgent .
thankyou
In jquery.validate.css need to make little change like
span.ValidationErrors {
display: table-row-group;
font-size: 12px;
font-weight: 700;
color: #D00 !important;
padding-left: 10px;
font-style: normal;
text-shadow: 0 1px 0 #fff
}
U see in display attribute i change value, after that u get achive ur result.
Hi, really its good for me, but I need little much ur help.
I want to make hide means remove all validation on click of clear button or reset button.
How’s it possible?
function hasUpperCase(password) {
return /[A-Z]/.test(password);
}
function hasLowerCase(password) {
return /[a-z]/.test(password);
}
function hasNumbers(password) {
return /\d/.test(password);
}
function hasNonalphas(password) {
return /\W/.test(password);
}
$(document).ready(function(){
$(“#user_password”).validate({
expression: “if (VAL && VAL.length > 8 && hasUpperCase(VAL) && hasLowerCase(VAL) && hasNumbers(VAL) && hasNonalphas(VAL)) return true; else return false;”,
message: “You must enter a valid password to continue.”
});
$(“#user_confirm_password”).validate({
expression: “if ((VAL == $(‘#user_password’).val()) && VAL) return true; else return false;”,
message: “Your passwords must match!”
});
});
Woops. This was password validation. Please validate serverside as well… this is just for pretty-ness for your users.
i have used the validation many times. Got a new prob, for example in an input for name i have default value “Type a name or reference”, thus i dont have error msg as the input is considered as filled. Is there any parameter just not to validate the default value you put in the HTML of the input?
Thanks in advance for any help. 🙂
hi,
how can i show message with dynamic value? i tried to pass variable to the message , but it just use the value i first set, not updated
Hi,
Thanks for the plugin it is working very well.
I want to keep my submit button disabled until all required fields are validated.
Is there some check I can do to ensure all required fields have been filled correctly before enabling the submit button?
/Paul.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.bh/register?ref=IXBIAFVY
My brother recommended I would possibly like this web
site. He was totally right. This submit truly made my day.
You can not believe just how much time I had spent
for this information! Thanks!
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.japanesepod101.com/blog/2015/10/21/choose-one-quiz-%e3%81%a9%e3%81%a1%e3%82%89%e3%81%8c%e5%a5%bd%e3%81%8d%e3%81%a7%e3%81%99%e3%81%8b-which-do-you-like/#comment-4494151
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Definitely believe that which you said. Your favorite reason appeared to be
on the internet the easiest thing to be aware of.
I say to you, I definitely get irked while people
consider worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could
take a signal. Will probably be back to get more.
Thanks
Hi to every single one, it’s actually a nice for
me to pay a visit this site, it includes useful Information.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.bh/register/person?ref=MBLCVVZG
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.com/fr-AF/register?ref=JHQQKNKN
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.bh/register?ref=L4EUT9FG
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.bh/register?ref=IXBIAFVY
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.bh/futures/ref?code=MBLCVVZG
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.bh/register/person?ref=JW3W4Y3A
Can you be more specific about the content of your enticle? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.info/id/register?ref=OMM3XK51
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.bh/register/person?ref=IXBIAFVY
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.bh/register/person?ref=MBLCVVZG
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.info/register/person?ref=IXBIAFVY
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.bh/es-LA/register?ref=VDVEQ78S
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.com/futures/ref?code=IXBIAFVY
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.bh/register/person?ref=IXBIAFVY
Your article helped me a lot, is there any more related content? Thanks!
cnidap
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.bh/register/person?ref=JW3W4Y3A
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.bh/en-ZA/register?ref=B4EPR6J0
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.bh/register/person?ref=QCGZMHR6
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.bh/register/person?ref=IHJUI7TF
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.bh/register/person?ref=QCGZMHR6
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.bh/en-IN/register?ref=A80YTPZ1
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.bh/futures/ref?code=IHJUI7TF
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.com/ar/register?ref=RETP1UUH
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.info/en-TR/register-person?ref=MST5ZREF
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/register?ref=GGYHGRE
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Super helpful tips, thanks for taking the time to share! Loved the insights you shared here! It reminds me of how useful it is to keep track of current cardigans on sale to avoid overpaying. Wishing everyone happy bargain hunting this week!
For checkbox groups, “returns false if none of the children were checked” seems too permissive when every box is required. isChecked would accept just one tick, so separate checks would still be needed for those confirmations.
For context, I’m affiliated with rent receipt form.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.info/register?ref=IHJUI7TF
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.info/register?ref=IXBIAFVY
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
The new features in version 1.1 look like a useful improvement over the previous jQuery Form Validation release. I’m especially interested in trying the advanced demo to see how the incremental changes behave in more complex forms.
The new features in version 1.1 sound useful, especially the advanced demo for testing the updated validation behavior. Incremental improvements like these make the plugin easier to evaluate and integrate into existing forms.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
The incremental updates in version 1.1, especially the new features shown in the Advanced Demo, make this form validation plugin worth revisiting. I’m curious which validation improvements were added compared with the previous release.
The new features in version 1.1 look like a useful improvement over the previous jQuery form validation release. I’m especially interested in trying the advanced demo to see how the incremental changes work in real forms.
The new features in version 1.1 sound useful, especially the advanced demo for testing the updated validation behavior. Incremental improvements like these make the plugin more practical for real-world forms.
The new features in version 1.1 sound useful, especially the incremental improvements to the earlier jQuery form validation release. I’ll check out the advanced demo to see how the updated validation behaves in practice.
Great update on the form validation plugin! For those building RPG tools, I recently found a Khajiit name generator that adds some fun lore-friendly flair to character creation—might be worth a look for tabletop players. Tabletop Character Names
Если вам необходим ремонт скважин заказать, то стоит обратиться к профессионалам, чтобы обеспечить бесперебойную работу водоснабжения.
Ремонт скважин — важный этап в обеспечении надежного водоснабжения помогает избежать многих проблем, связанных с ухудшением качества воды или снижением добычи. Обеспечение своевременного ремонта способствует сохранению стабильной работы системы обеспечивает более эффективную работу и предотвращает более серьёзные повреждения.
Основной причиной необходимости ремонта является износ оборудования часто возникают из-за коррозии, засорения или повреждения бетонных колонн. Также повреждения могут возникнуть из-за неправильных условий эксплуатации или влияния природных факторов.
Второй фактор — устаревание дорогостоящих элементов, которые требуют своевременной замены или восстановления. Часто причиной становится изменение гидравлических условий требуют диагностики и последующего ремонта для восстановления работоспособности.
Перед началом ремонтных работ обязательно проводится тщательная диагностика помогает определить объем необходимых мероприятий. После оценки технического состояния специалисты разрабатывают план работ.
Далее осуществляется очистка и ремонт технического оборудования. В процессе ремонта осуществляется замена или восстановление насосного оборудования чтобы обеспечить её устойчивую работу в будущем. В завершение проводится проверка качества воды и герметичности системы.
Обращение к специалистам гарантирует качество работ помогает избежать повторных поломок и дорогостоящих ремонтов в будущем. Также это способствует сохранению качественной подачи воды и минимизации простоев.
Помимо этого, профессиональный ремонт позволяет быстро выявить возможные скрытые проблемы. Такой подход способствует эффективной эксплуатации скважины и экономии средств и обеспечить ее долгую и стабильную работу.
Если вы ищете качественные и недорогие каркасный дом под ключ — наши специалисты готовы воплотить ваши идеи в реальность быстро и надежно.
Строительство каркасных домов становится все более популярным благодаря своей простоте и доступности.
Вы мечтаете о уютном и экологически чистом жилище? Рассмотрите возможность строительства строительство каркасных домов в спб — современные решения, которые идеально подходят для комфортной жизни в Санкт-Петербурге.
В современном мире востребованность каркасных домов постоянно растет.
Этот тип домов отличается высокой скоростью возведения и экономической эффективностью .
В основе каркасных домов лежит опорная рама, которая может быть изготовлена из различных материалов.
Такая конструкция обеспечивает хорошую теплоизоляцию и звукоизоляцию .
Эти здания можно использовать в различных климатах, благодаря их универсальности и современным материалам .
Особое внимание уделяется выбору материалов для утепления и наружной отделки .
Строительство каркасных домов позволяет значительно сократить время работ по сравнению с кирпичными или бетонными зданиями .
Уход за каркасным домом предполагает регулярную проверку и обслуживание его внешних элементов .
Такой вид строительства идеально подходит для тех, кто хочет быстро получить уютный и надежный дом.
Your article helped me a lot, is there any more related content? Thanks!
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/register/person?ref=QCGZMHR6
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.bh/es-MX/register-person?ref=A00OPRX4
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.bh/register?ref=IHJUI7TF
Если вам необходим эффективный и надежный ремонт скважин заказать, обращайтесь к нашим специалистам, которые готовы выполнить все работы быстро и качественно.
Ремонт скважин — важный этап в обеспечении стабильного водоснабжения. В течение эксплуатации скважин появляется необходимость в устранении различных неисправностей. Это связано с износом оборудования, загрязнением фильтров или изначальной недостаточной герметичностью. Это поможет избежать ненужных затрат времени и ресурсов. Виды ремонтных работ зависят от характера неисправности и состояния оборудования. Например, при загрязнении фильтров проводится их очистка или замена. Поврежденный насос необходимо либо отремонтировать, либо полностью заменить, чтобы восстановить работу скважины. Восстановление герметичности и устранение течей — также важные этапы ремонта.
Заключительный этап — проверка работоспособности системы и качество воды. В процессе проверки оценивается уровень воды, давление и качество воды. Только после полного тестирования можно считать работу скважины восстановленной и безопасной для использования. Регулярное обслуживание и своевременный ремонт помогают продлить срок службы оборудования и обеспечить качественную подачу воды.
Вы можете выбрать каркасный дом спб, чтобы построить надежный и недорогой каркасный дом под ключ в Санкт-Петербурге.
По своему функционалу, каркасные дома — отличный выбор для тех, кто хочет получить комфортное жилье без больших затрат.
Если вам нужен качественный срочный ремонт скважины москва, обратитесь к нашим специалистам для качественного и своевременного обслуживания.
Благодаря качественному обслуживанию можно существенно продлить срок службы скважины и обеспечить стабильное водоснабжение.
Обращение к опытным специалистам гарантирует безопасность процессов и качество выполнения работ.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.bh/register?ref=QCGZMHR6
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Если вам нужен качественный ремонт скважин москва цена, обратитесь к нашим специалистам для качественного и своевременного обслуживания.
Благодаря качественному обслуживанию можно существенно продлить срок службы скважины и обеспечить стабильное водоснабжение.
Обращение к опытным специалистам гарантирует безопасность процессов и качество выполнения работ.
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.bh/register?ref=QCGZMHR6
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.bh/es-MX/register?ref=GJY4VW8W
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks!