Get started with field-kit CDN
Apache-2.0 licensed
Fieldkit is a lightweight library for building and enhancing web forms.
Tags:- field-kit
- input
- format
Stable version
Copied!
How to start using field-kit CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with field-kit CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/fieldkit.min.css">
<script src="https://cdn.cdnhub.io/field-kit/2.1.0/field-kit.min.js"></script>
</head>
<body>
<form id="my-form">
<fieldset>
<legend>Personal Information</legend>
<field name="name">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</field>
<field name="email">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</field>
</fieldset>
<button type="submit">Submit</button>
</form>
<script>
const form = document.querySelector('#my-form');
FormKit.init(form);
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!