Preventing paste into an input field
Create a range slider
This post introduces two popular ways to create a range slider.
Automatically expand a textarea as the user types
A really neat little helper function that automatically expands a textarea as the user types in.
Trigger an event
There are some special events that are avaialble as the method’s element.
Count the number of characters of a textarea
Count the number of characters by handling the input event which is triggered if the value of element is changed.
Serialize form data into a query string
This function serializes the form data which consists of names and values of its fields.
Validate Numeric Only
This script verifies that a string is numeric, otherwise it deletes the non-numeric character.