JavaScript Form Scripts

A massive collection of vanilla JavaScript tools to enhance web forms. Includes validators, calculators, auto-formatting inputs, text manipulation tools, and dynamic form controls.

Universal Form Validator

A comprehensive script to check if all required fields are filled out before submission.

Email Address Validator

Ensures the user inputs a valid email structure (e.g., name@domain.com).

Email Format Verifier

Another robust method for verifying email syntax on the client side.

Input Box Restrictions

Restricts what characters can be typed into a field (e.g., numbers only, letters only).

Character Count Limiter

Limits the number of characters allowed in a textarea and shows a countdown.

Word Count Validator

Ensures the user does not exceed a maximum number of words in a text field.

Comprehensive Form Validator

Checks multiple field types (checkboxes, radios, text) for valid input.

Single Selection Validator

Ensures that at least one option is selected from a group of checkboxes or radio buttons.

Basic Javascript Calculator

A simple, functional calculator for performing standard arithmetic.

Advanced Scientific Calculator

A more complex calculator supporting scientific functions (sin, cos, tan, etc.).

Simple Multiplication Calculator

Quickly multiplies two numbers entered into form fields.

Simple Subtraction Tool

A dedicated utility for subtracting numerical values.

Matrix Multiplication Tool

Performs matrix multiplication logic on sets of inputs.

Bandwidth Calculator

Estimates download times for files based on different connection speeds.

Credit Card Payoff Calculator

Calculates how long it will take to pay off a credit card balance based on interest rates.

Geo-Coordinates Converter

Converts Latitude and Longitude data formats and calculates distances.

Roman Numeral Converter

Converts standard numbers (integers) into Roman Numerals and vice versa.

Chinese Zodiac Calculator

Determines your Chinese Zodiac sign based on your birth year.

Automatic Text Converter

Transforms text case (uppercase, lowercase) or format as the user types.

Reverse Text Generator

Flips text backwards (e.g., "Hello" becomes "olleH").

Reverse Text Converter

Another variation of the text reversal tool for form inputs.

Currency Formatter

Automatically formats input numbers into currency format (e.g., 1000 -> $1,000.00).

Number Formatting Tool

Adds commas to large numbers for better readability (e.g., 1000000 -> 1,000,000).

Auto-Clear Field

Clears the default text in an input box when the user clicks inside it.

Auto-Clear Form (OnFocus)

Automatically removes placeholder text when the field gains focus.

Click-to-Clear Input

Another utility to clear form values on a click event.

Auto-Tab Form Fields

Automatically moves the cursor to the next field when the current one is full (useful for phone numbers or serial keys).

Disable Enter Key Submission

Prevents the form from submitting when the user hits the "Enter" key.

Select All Text

Automatically selects/highlights all the text in a textarea or input box when clicked.

Auto-Select Field Value

Highlights the entire field value instantly for easy copying.

Text Selection Copier

Copies the selected text from a form field to another location or clipboard.

Fixed Input Prefix (Undeletable)

Keeps specific text (like "http://") at the start of an input field so the user cannot delete it.

Dynamic Form Fields

Add or remove input fields dynamically allowing users to submit lists of items.

Editable Dropdown Menu

A hybrid input field that acts like a dropdown but also allows custom text entry.

Dropdown Selection Message

Displays a specific description or message based on what the user selects from a dropdown.

Live Checkboxes

Triggers immediate actions or calculations the moment a checkbox is toggled.

Dynamic Page Title Appender

Takes input from a form and appends it to the browser's title bar dynamically.

User Input Prompt

Uses a prompt dialog to gather user input and then populates a form field with it.

Word Guessing Game

A simple Hangman-style word guessing game built using form inputs.

Number Guessing Game

A "High/Low" guessing game where users try to find the hidden number.

List Duplicate Remover

Takes a list of comma-separated values or lines and removes any duplicate entries.

HTML Code Editor Box

A simple textarea that allows users to write HTML and preview it in a new window.

Hex Color Picker

Helps users select colors and generates the corresponding Hexadecimal code.