You can validate JavaScript forms with Basic Validate JS.
<script src="dist/form-validate.min.js"></script>
Text Validate
<input id="txtName" type="text" placeholder="Name">
textControl('txtName'); // return true or false
Email Validate
<input id="txtMail" type="email" placeholder="Email">
emailControl('txtMail'); // return true or false
Date Validate
<input type="date" id="txtDate" value="2018-07-29" />
dateControl('txtDate'); // return true or false
Custom Date Validate
//Format: DD/MM/YYYY
customDateControl('29/06/2018'); // return true or false
Iban Validate
<input id="txtIban" type="text" placeholder="Iban">
ibanControl('txtIban'); // return true or false
Regex Validate
var numberPattern = /^(([0-9]*)|(([0-9]*)\.([0-9]*)))$/;
patternControl('1234567890', numberPattern); // return true or false