Skip to content

For tokwa friends CJ and Jerome coding challenge.

Notifications You must be signed in to change notification settings

cjdy13/Code-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 

Repository files navigation

Coding Challenge πŸ†

For tokwa friends CJ and Jerome coding challenge.

Instructions πŸ“

  1. fork this repo and.
  2. clone your forked repo in your local machine.
  3. Create a folder with your first name, and put your codes inside.
  4. File to create, index.html and index.js
  5. In your HTML file... create a form with two fields, firstname and lastname field with submit button.
  6. In your js file..... use this API to validate the form in the HTML....
// index.js


// Put your codes here for creating `FormValidator` function code.
// Hints :
// - form submit event listener inside the `FormValidator` function




// this must stay...
FormValidator({
    id: "formIdHere",
    rules: {
        firstname: "minLen:2", // means minimum length
        lastname: "maxLen:5", // means maximum length
    }
});
  1. When the HTML form is submitted (form submit event), form validation starts , and console.log() if the firstname and lastname passed the validation(simple message).

  2. When done, push the code in your repo and perform pull request in this repo.

Goodluckz mga ka tokwa! 😊✌️

About

For tokwa friends CJ and Jerome coding challenge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published