Introduction: In Today's Post I will explain how to do Validation with Jquery for Emailid, Phone number, numbers, Decimal and Required in single generic code.
Post: Client side validation is the most common process in any web site. Even though we have jQuery form validation plugin also. But the issue we faced with this plugin is that We have to write separate code to validate every form. So I decided to something generic that I can write once and not need to think about client side validation part. Luckily jQuery provide us option to do this easily.
One single code will validate the complete site. In the current post, I will validation only for required, email, phone number, and decimal values. With a little code of jQuery and some CSS, we can do it.