Get started with TypeWatch CDN
(MIT OR GPL-3.0) licensed
TypeWatch: Lightweight JS library for real-time input validation, data binding by data types.
Tags:- typewatch
- input
- form
- text
- autocomplete
- jquery
Stable version
Copied!
How to start using TypeWatch CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with TypeWatch CDN - cdnhub.io</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.cdnhub.io/TypeWatch/3.0.2/jquery.typewatch.min.js"></script>
<script>
$(document).ready(function() {
$('#inputExample').typewatch(
{
after: function(data) {
console.log('Input: ' + data.value);
console.log('Length: ' + data.length);
console.log('Matches: ' + data.matches.length);
}
}
);
});
</script>
</head>
<body>
<input type="text" id="inputExample">
</body>
</html>
Copied!
Copied!