Skip to content
jshacks.dev

Tag

forms

5 posts

Flat illustration of a browser and a server trading a request and a response, with the JavaScript, Google Chrome, Swagger, GraphQL and NGINX logos.
Browser

Build a Quiz App in Vanilla JavaScript

Build a quiz app in vanilla JavaScript with a question data model, one render function, scoring, answer feedback, a results screen and accessible radio inputs.

8 min read
Flat illustration of a form with one field rejected, with the Google Chrome, TypeScript, JavaScript and Vite logos.
Browser

How to Build a Drag-and-Drop File Upload

Build a drag-and-drop file upload with dragover and drop events, a file input fallback, validation, previews, folder drops and accessible feedback.

8 min read
Flat illustration of one event fanning out to several listeners, with the JavaScript, Google Chrome, Socket.io and Redis logos.
Browser

How to Handle Paste Events in JavaScript

Handle paste events in JavaScript with clipboardData: read text, HTML and files, strip formatting, paste images, sanitize input and keep undo working.

8 min read
Flat illustration of a form with one field rejected, with the JavaScript, Google Chrome, Vite and TypeScript logos.
Browser

Build a Form Wizard in Vanilla JavaScript

Build a multi-step form wizard in vanilla JavaScript with per-step validation, a progress indicator, back and next buttons, saved answers and accessible focus.

8 min read