Giter Site home page Giter Site logo

form-validation's Introduction

Project: Form Validator

Github Page : https://niraj-amatya.github.io/Form-Validation/

Github: https://github.com/Niraj-Amatya

Project Introduction

This is a simple client side form validation. It checks if the fields are filled, username and passwords meets the length specification and password passes the validation and email is valid.

Note: There are two Javascript file script.js and script1.js. script1.js is not a dry code and uses same code repeatedly. So script.js is used with actual UI. Script1.js is just for my understanding and more simplicity of the code. This shows how the final project was developed.

Technology Used:

HTML 5, CSS and vanilla Javascript. No framework or libraries used.

Inpiration: Brad Traversy "20 Web Projects with Vanilla Javascript"

Project Specification

  • Create from UI
  • Show error messages under specific units
  • Check if all the fileds are filled and give specific error message
  • Check length of username
  • Email validation
  • Check password validation and give error message if validation does not meet
  • Check if password matches to confirm password

Create from UI

Used HTML and CSS User Interface

Check if all the fileds are filled and give specific error message under specific units

Error1

Check length of username:

Check if the length is not less then the minimum character required.

Error2

Check if the length is not more then the maximum character required.

Error3

Email validation:

Email validation using regular expression. Error4

Check password validation and give error message if validation does not meet

Validation was checked using regular expression

Error5

Check if password matches to confirm password

Error6

Success

When all the fields meet the necessary requirements, you see green color in the border of the box.

Success

form-validation's People

Contributors

niraj-amatya avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.