Skip to content

NW stands for Next Wagon for Form Input is Next Level Form Validation Library

License

Notifications You must be signed in to change notification settings

SemutJahat/nwjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nw.js (Next Wagon.js) is A Lightweight Javascript Library for Form Validation


MIT License MIT License

Open Collective Open Collective Open Collective


Table of Contents

Usage

You can see the example usage here

How to use

You can import the script inside the body tag.

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>nwjs</title>
</head>
<body>
    <form action="" method="post">
        <input id="testInput" type="text" placeholder="text">
        <span error="testInput"></span>

        <button type="submit">Login</button>
    </form>    
    <script src="https://rawcdn.githack.com/fauzan121002/nwjs/7c809ab9c946df252e9c410ee1018a8c24972076/nw.js"></script>
</body>
</html>

Then just add "validate" attribute in your form tag

    <form action="" method="post" validate>

supported input type :

  • email
  • text
  • password
  • checkbox
  • file
  • radio
  • number and also textarea tag.

Contributing

You can create new pull requests here

License

This javascript library is published under MIT License

About

NW stands for Next Wagon for Form Input is Next Level Form Validation Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published