Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const template = document.createElement('template');
- template.innerHTML = `
- <label for="email-input">Email</label>
- <input type="text" id="email-input" name="email-input">
- <div>
- <small style="visibility: hidden;" id="validationtext"></small>
- </div>
- <style>
- .invalid {
- color: red;
- }
- .valid {
- color: green;
- }
- </style>
- `;
Add Comment
Please, Sign In to add comment