Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
kvervoPublic archive

About

JS script to validate forms

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

How to write the HTML so the JS can validate it

<span id="field_nameErr" class="error">Error Message</span> // Requierd
	<label for="field_name">Label</label> // Optional
	<input type="text" id="field_name" name="field_name"/> // Required

The validation happens by the ID in the INPUT tag. Also the validation will happen if only the element has an error message with an ID equals to ID+'Err'.

About

JS script to validate forms

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages