Today we are going to discuss about form validation. Now a days people are expecting powerful validation with simple code, so HTML5 is there, in html5 we have to just put required to make validation, as similar like that, we are going to see about form validation using validate js. by using that validate js we are going to do validation very simple. as well as Javascript validation its will take too much of code so that we have to overcome that by jquery validation . just include the jquery validation file to make form validation. let see the coding.
and i already post javascript validation with alert style. and this jquery validation will overcome that, and this will be very simpler.
HTML
<html> <head> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>
</head> <body> <form id="user_form" method="post"> <p> <input type="text" title="Please Enter your name" class="required" name="firstname" /> </p> <p> <input type="text" class="required" name="lastname" /> </p> <p> <input type="email" class="required" name="email" /> </p> <p> <input type="submit" name="send" value="Submit your Request"> </p> </form>
<script type="text/javascript"> $('#user_form').validate(); </script></body> </html>
Required field validation
just call class is required in your input field and enter title message.
<input type="text" title="Please Enter your name" class="required" name="firstname" />
Email field validation
<input type="email" class="required email" name="email" />
Number field validation
<input type="text" class="required number" name="phone" />
Url validation
<input type="text" class="required url" value="http://" name="url" />
Password confirm validation
<input type="password" id="password" class="required" name="password" /> <input type="text" equalto="#password" class="required" name="password1" />
Minimum and maximum
<input type="text" min="10" class="required number" name="age" /> <input type="text" max="60" class="required number" name="age" />
Other form fields
<input type="checkbox" class="required" name="agree" /> agree <input type="radio" class="required" name="yes" /> yes <select class="required"></select> <textarea class="required"></textarea>
i hope this post is really helpful to every one, thanks for your visiting.
RELATED POSTS :
So sites with excellent quality content become valuable to search engines.
ReplyDeleteIt provides flexible operating here we are at the employees and one can have pretty large wage along with the appropriate spare time.
Many organisations are finding that they have
a better outcome when they employ a service to perform
their London web design as well as Facebook development and social media UK
options.
Some SIM cards can store all of the vital specifics of the telephone
ReplyDeleteand card owner. Do you want a phone that has special aps which will do
various things. Hence, today there are numerous mobile
service providers like Vodafone, O2, T-Mobile, Orange,
and giffgaff, Lebara, Lyca Mobile and Virgin Mobile.
It is just the process of making specific search phrases,
ReplyDeletethat are relevant to your website visible high
up in the search engine rankings. They do their level best to make a site attractive and beautiful.
Taking a look at other company's websites within a particular
niche field can clue you in to what's being
actively searched for, and what's not.
But unlike other SEO companies London or elsewhere, we forge long term partnerships for long-lasting
ReplyDeletesuccess. Furthermore, a keyword should never feel like it is forced awkwardly to fit into content.
asia expert in providing website designing, website development, seo services, website hosting, digital marketing services and
offering professional readymade scripts without any hesitation work and these Yourneeds.
Thanks very interesting blog!
ReplyDeleteI've been exploring for a little for any high quality
ReplyDeletearticles or weblog posts on this kind of space .
Exploring in Yahoo I ultimately stumbled upon this site.
Reading this info So i'm glad to express that I've
an incredibly excellent uncanny feeling I came
upon exactly what I needed. I most undoubtedly will make certain to do not forget this
website and give it a glance on a constant basis.
Hurrah, that's what I was seeking for, what a stuff!
ReplyDeleteexisting here at this web site, thanks admin of this web
site.
It's fantastic that you are getting thoughts from this article as well as from our discussion made at
ReplyDeletethis time.
Greetings! Very helpful advice within this article! It's the little changes which will
ReplyDeletemake the most significant changes. Thanks a lot for sharing!
You will draw more loyal readers to your site and keep your readers coming
ReplyDeleteback because you are sharing the best with them. They do their level best
to make a site attractive and beautiful. You need to check that
they are qualified accountants as many will not be.
It's amazing for me to have a web site, which is helpful for my knowledge.
ReplyDeletethanks admin
This is my first time pay a quick visit at here and i am really happy
ReplyDeleteto read all at one place.
I really like what you guys tend to be up too. This type of clever work and exposure!
ReplyDeleteKeep up the awesome works guys I've added you guys to
my blogroll.
Hi, I wish for to subscribe for this weblog to
ReplyDeletetake hottest updates, so where can i do it please help out.
Hello my family member! I want to say that this post is awesome,
ReplyDeletenice written and include approximately all important
infos. I would like to look more posts like this .
My partner and I absolutely love your blog and find
ReplyDeletealmost all of your post's to be what precisely I'm looking for.
Would you offer guest writers to write content for yourself?
I wouldn't mind writing a post or elaborating on a number
of the subjects you write related to here. Again, awesome site!
I always used to study piece of writing in news papers but now as I am a user of web therefore from now I
ReplyDeleteam using net for content, thanks to web.
great issues altogether, you just won a emblem new reader.
ReplyDeleteWhat would you suggest about your submit that you simply made some days in the past?
Any certain?
Hi, this weekend is nice for me, for the reason that this moment i am reading this impressive informative post
ReplyDeletehere at my home.
Excellent write-up. I certainly love this site.
ReplyDeleteKeep writing!
I appreciate, lead to I found just what I used to be taking a look for.
ReplyDeleteYou've ended my four day long hunt! God Bless you man. Have
a great day. Bye
Some SIM cards can store all of the vital specifics of the telephone and card owner.
ReplyDeleteDo you want a phone that has special aps which will do various things.
All together you can say that it is best to have an actual system that can help you win the Powerball by using logical solutions.
I just like the helpful information you supply in your articles.
ReplyDeleteI will bookmark your blog and test once more right here frequently.
I'm reasonably certain I'll be told a lot of new stuff right
here! Best of luck for the following!
• Telephone directories: 500 groups of contacts, support caller groups.
ReplyDeletePeople who travel out of the country frequently, either for professional or personal reasons,
may often find themselves switching their SIM cards in and out of cell or smartphones.
There are many people are using dual sim cards dual standby mobile.
Remarkable issues here. I'm very satisfied to look your article.
ReplyDeleteThank you a lot and I am having a look forward to contact you.
Will you kindly drop me a mail?
What's up i am kavin, its my first time to commenting anywhere, when i read this post i
ReplyDeletethought i could also make comment due to this brilliant post.
So, additional efforts have to be undertaken to develop the visiting page of your website.
ReplyDeleteThere is absolutely no point in finding one of the great London Accountants only to
find that they are actually too far away from
your place of business to be accessible. This means
that all of the content that your users can see,
including buttons, menus and clickable links will be index-able.
Some SEO companies may only offer basic professional SEO services.
ReplyDeleteFurthermore, a keyword should never feel like
it is forced awkwardly to fit into content. By using a service that can provide you
will all of the various choices, you will save time and money getting online and noticed.
Right away I am ready to do my breakfast, once having my breakfast coming
ReplyDeleteover again to read further news.
I visited several web pages but the audio feature
ReplyDeletefor audio songs existing at this web site is in fact excellent.
Aligning procurements goals with the corporate strategy produces
ReplyDeletea number of standout benefits, including:. Think about every piece of
information that is on your own mobile phone.
All together you can say that it is best to have an actual system that can help you win the
Powerball by using logical solutions.
Hello! I could have sworn I've visited this site before but after browsing through
ReplyDeletemany of the posts I realized it's new to me. Nonetheless,
I'm certainly pleased I came across it and I'll be bookmarking
it and checking back regularly!
But unlike other SEO companies London or elsewhere, we forge long term partnerships for
ReplyDeletelong-lasting success. By using the data from Google Adwords, SEO company London experts can match keywords that they
want to target and are specific. Taking a look at other
company's websites within a particular niche field can clue you in to what's being actively searched for,
and what's not.
It is just the process of making specific search phrases, that are relevant to your website visible high up in the search engine
ReplyDeleterankings. There is absolutely no point in finding one of the great London Accountants
only to find that they are actually too far away from your place of business to be
accessible. Taking a look at other company's websites within a particular niche field can clue you in to what's being actively searched for,
and what's not.
Your style is very unique in comparison to other people I've read stuff from.
ReplyDeleteThank you for posting when you've got the opportunity, Guess I'll just
book mark this page.
Excellent way of explaining, and nice paragraph to obtain facts about my presentation focus, which i am going to present in university.
ReplyDeleteHi, I do think this is a great web site. I stumbledupon it ;) I will return once again since i have bookmarked it.
ReplyDeleteMoney and freedom is the best way to change, may you be
rich and continue to guide other people.
Thank you, I have just been searching for info approximately this
ReplyDeletesubject for a while and yours is the greatest I have discovered so
far. However, what in regards to the conclusion?
Are you positive concerning the supply?
I'm amazed, I must say. Seldom do I come across a blog that's
ReplyDeleteequally educative and interesting, and let me tell you, you have hit the nail on the
head. The problem is an issue that not enough men and women are speaking intelligently about.
I'm very happy I stumbled across this during my search for something regarding this.
Some SEO companies may only offer basic professional SEO services.
ReplyDeleteThey do their level best to make a site attractive and beautiful.
But if you are not, then you have to create a distinct identity for your business.
Some SIM cards can store all of the vital specifics of the telephone and card owner.
ReplyDeleteEvery feature of these sim is available in every handset so it also allows changing our handset without changing the phone number.
Robotics are often used for repetitive tasks, monotonous jobs
or those parts of the manufacturing process that are physically difficult or
take place in environmentally unpleasant conditions.
There are lots of software companies all around the world, one of
ReplyDeletewhich is London web agency. Furthermore, a keyword should never feel like it is forced awkwardly to fit into
content. But if you are not, then you have to create a distinct
identity for your business.
Some SEO companies may only offer basic professional SEO services.
ReplyDeleteFurthermore, a keyword should never feel like
it is forced awkwardly to fit into content. Taking a look at other company's websites within a particular niche field
can clue you in to what's being actively searched for, and what's not.
Some SEO companies may only offer basic professional SEO
ReplyDeleteservices. Each of the images on your web site should really have proper detailed
titles and alt tags too. Many organisations are finding that they have a better
outcome when they employ a service to perform their London web design as well as Facebook development and social media UK
options.
It is just the process of making specific search phrases, that
ReplyDeleteare relevant to your website visible high up in the search
engine rankings. They do their level best to make a site attractive and beautiful.
This means that all of the content that your users can see,
including buttons, menus and clickable links will be index-able.
Often, this is because the card itself isn't seated properly or perhaps the card is
ReplyDeletecorrupted. There are many different types of lasers used to alter sheet metal
stamping and plastics in the automotive industry.
Some providers give offers and discounts
for acquisition of new card and in addition offer fixed minutes without
any talk with grab a person's eye of the customer.
It is just the process of making specific search phrases, that
ReplyDeleteare relevant to your website visible high up in the search
engine rankings. Furthermore, a keyword should never feel like it
is forced awkwardly to fit into content. Whether you
promote yourself as a solo or business brand (< learn 10 ways to improve your SEO with Google+) Google+ is now a necessity.
An impressive share! I've just forwarded this onto a coworker who was conducting a little homework on this.
ReplyDeleteAnd he actually bought me dinner due to the fact that I discovered it for him...
lol. So allow me to reword this.... Thanks for the meal!!
But yeah, thanx for spending some time to discuss this topic here on your internet site.
Inspiring quest there. What happened after? Good luck!
ReplyDeleteIt is just the process of making specific search phrases, that are relevant to your website visible high up in the search engine rankings.
ReplyDeleteEach of the images on your web site should really have proper
detailed titles and alt tags too. But if you are not, then you have to create a distinct identity for your business.
By juicing healthy fruits and vegetables in your own home, you can boost the nutritional content of your diet with ease.
ReplyDeleteThere are many different types of lasers used to alter sheet
metal stamping and plastics in the automotive industry.
There are many people are using dual sim cards dual standby mobile.
This post is truly a pleasant one it assists new web people, who are wishing for blogging.
ReplyDeleteSo, additional efforts have to be undertaken to develop the visiting page of
ReplyDeleteyour website. Each of the images on your web site should really have
proper detailed titles and alt tags too. Many organisations are finding that they
have a better outcome when they employ a service to perform their London web design as well as Facebook development and
social media UK options.
hey there and thank you for your info – I have definitely picked up anything new
ReplyDeletefrom right here. I did however expertise several technical issues using
this web site, as I experienced to reload the website
many times previous to I could get it to load
correctly. I had been wondering if your web hosting is OK?
Not that I'm complaining, but slow loading instances times will often affect your placement in google and can damage your quality score if ads and
marketing with Adwords. Anyway I'm adding this
RSS to my email and can look out for much more of your respective fascinating content.
Make sure you update this again soon.
What's up, I read your blogs regularly. Your humoristic style is awesome, keep doing what
ReplyDeleteyou're doing!