background preloader

Forms

Facebook Twitter

Garlic.js. In-Field Labels jQuery Plugin. Posabsolute/jQuery-Validation-Engine. Recurly.js - JavaScript library for customizable transaction forms. Auto-detecting Credit Card Type. There was a time when people thought the internet required a completely different payment method than the real world. After a very short period of time, everyone came to realize that credit cards were actually quite well-suited to the web, and so the credit card form was born. You’ve probably seen such form frequently and always with the same fields: Your nameCredit card typeCredit card numberExpiration date Recently, I’ve come across several sites who have done away with the credit card type field. Both Amazon and GitHub don’t require you to select a credit card type in their form. Amazon waits until the entire credit card number is entered and then displays an icon representing the credit card type. GitHub updates the interface a bit faster, waiting until it has enough information to figure out the credit card type.

This credit card type detection is a nice addition to the standard payment form because it frees up the user from entering what is actually redundant information. DropKick - a jQuery plugin for beautiful dropdowns. Making Web Forms Simple as 1, 2, 3 | Uni–Form. Chosen - a JavaScript plugin for jQuery and Prototype - makes select boxes better. Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.

Downloads Project Source Contribute Standard Select Turns This Into This Multiple Select <optgroup> Support Single Select with Groups Multiple Select with Groups Selected and Disabled Support Chosen automatically highlights selected options and removes disabled options. Single Select Multiple Select Hide Search on Single Select The disable_search_threshold option can be specified to hide the search input on single selects if there are n or fewer options.

Default Text Support Chosen automatically sets the default field text ("Choose a country... ") by reading the select element's data-placeholder value. Note: on single selects, the first element is assumed to be selected by the browser. No Results Text Support Setting the "No results" search text is as easy as passing an option when you create Chosen: Limit Selected Options in Multiselect You can easily limit how many options the user can select: Right-to-Left Support. Mathiasbynens/jquery-placeholder - GitHub.