Further Reading on SmashingMag: Link
- 40 Useful jQuery Techniques and Plugins4
Due to the length of this post, we’ve split it into two parts for your convenience:
- Part 1: Web Forms, Typography, Time-Savers and Images
- Part 2: Text, Tables, Lists and Useful Development Tools1677
Quick Overview: Link
Below you’ll find a brief overview and links to the libraries and tools featured in this post. They are supposed to help you find just the right tool quickly without browsing the whole page.
- Web Forms:
framework – auto-saving drafts8 – file upload9 (and resuming large downloads10) – <select> boxes11 – modal boxes12 – form accordion – dynamic labels13 – drop-down with images14 – tooltips15 – extended input16 – form validation17 – credit card validation (alternative18) – email check19 – password complexity20
- Web Typography:
repairing vertical baseline – align text to a grid21 – responsive measure22 – fixing widows23 – fluid line height24 – scalable headlines25 (or smart headlines) – Lettering.js26 – Kerning.js9927
- Little Time-Savers:
exchange rates and currency28 – date/time formatting29 – relative timestamps30 – number and currency formatting31 – cookies.js32 – zip.js12433 – extra string methods34 – countdown.js35 – sticky content36 – Google Maps37 – progress bar38 – favicon notifications39 (or Notificon40)
- Images, Maps, Graphs:
world maps41 – subway map42 – Google maps43 – SVG fallback44 – gauges45 – graphs46 – timeline47 – Retina display48 – magnifying glass49 – interactive graphs50 – plots51 – time visualization52
Web Forms and Input Validation Link
A jQuery-plugin for replacement and enhancement of
<select>-boxes. The plugin supports search, remote data sets, and infinite scrolling of results. Users can just start typing what they’re looking for. Non-matching entries are removed from the view, and options can be selected using “Enter” or a mouse click. The plug-in works with standard select input fields as well as with multiple selects and
optgroup. It also has support for
disabled and default text (HTML5’s
placeholder attribute). The plug-in is based on Chosen54, an alternative solution which is currently available in jQuery, MooTools and Prototype flavors and as a Drupal 7 module.
Another cross-browser solution to enhance the
<select> element with jQuery and CSS. Requires jQuery 1.6 or higher. It provides full customization, support of
optiongroup, automatic calculations, keyboard support, callback functions and is compatible with mobile devices.
This script allows Gmail-like auto-saving of drafts. It stores form data to the HTML5 local storage of the user’s browser and restores it when the user reloads or reopens the page or opens the page in a new tab. The data is cleared from local storage when the user submits or resets the form.
jQuery Credit Card Validator Link
This library allows you to transform HTML text into input fields, without resorting to code inflation. The plugin inserts aesthetic as well as practical input possibilities, e.g. Tags, Ajax, Focus and others.
A jQuery plugin for displaying a depth illusion between popup and page. The original script by Hakim El Hattab63 uses CSS transitions and transformations, and the plugin gracefully degrades in those that do not support transitions and transforms. MIT licensed.
This library enhances ordinary search boxes with the ability to autocomplete faceted search queries. You can specify the facets for completion, along with the completable values for any facet. You can retrieve the search query as a structured object, so you don’t have to parse the query string yourself.
Ideal Forms Framework Link
A very comprehensive jQuery plugin for building and validating responsive HTML5 forms. It provides keyboard support, customizable input types, “on the spot” validation, localization and HTML5
placeholder polyfill. Supported in IE8+, Chrome, Firefox, Opera, iOS5+, Android 4.0+.
File Upload widget with multiple file selection, drag&drop-support, progress bars and preview images. It supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.
This jQuery plugin provides tool tips without being limited to cardinal directions. A grumble can be rotated around a given element at any angle, all 360 degrees and at any distance — with CSS. Works in Internet Explorer 6+ and modern browsers. Also, check Tipped73, a larger library of various designs and implementations of tooltips with an extensive API.
Prashant Chaudhary has realeased a free lightweight jQuery plugin that lets you create a custom drop-down that can include images, a short description, along with your usual text and value. It also supports callback functions on selection. You could use CSS3 Drop-Downs80 as well.
This jQuery plugin makes it easy to create alert, success, error, warning, information and confirmation messages. The notification can be positioned anywhere on the page and you can customize the text, animation, speed and buttons easily.
Complexify helps you to accurately gauge the quality of a user’s password to give them visual feedback, and to enforce a minimum level of security.
With Numberfy you can integrate native support for line numbers in your website’s text areas. On every key press in the text area, the text area’s current value is split into lines. This script will not work in IE due to a bug in the text-wrap properties.
A jQuery plugin for easily hiding and revealing related form fields conditionally.
You can use the library to give your forms a fade-out label. This implementation makes the label slide across the field when gaining focus and fade out when a value is entered. A fallback is provided as well.
Web Typography Libraries and Plugins Link
A jQuery plugin for restoring baselines thrown off by odd image sizes. To use it, you just call the plugin passing the height of your baseline as a variable. You can also define multiple baselines for different responsive breakpoints.
Developed by the development team of Financial Times, this library is essentially a polyfill that fixes the inadequacies of CSS column layouts. With the library, you can provide configurable column widths, gutters and margins, define elements spanning columns, keep-with-next to avoid headings at the bottom of a column, group columns into pages and standardize line height to align text baseline to a grid.
A simple script that allows you to pass in a selector (ideally the container where your primary content will go), which generates the ideal font size needed to produce the ideal measure for your text. The script also generates a resolution-independent font-scale based on the ideal font-size. Created by Josh Brewer.
With his article, Tim Brown inspired developers to release tools that adjust
line-height for optimum readability on responsive websites. The so-called molten-leading binds the height of the line to an element’s minimum and maximum width. jQuery-minLineHeight is a jQuery plugin that works similarly with minimum and maximum width association.
This jQuery plugin helps you create scalable headlines that fill the width of a parent element in your fluid or responsive layouts. You might want to check out Lettering.js97 as well to get a complete down-to-the-letter control of letters in your projects.
This library lets you kern, style, transform, and scale your Web type with CSS rules, automatically. You can adjust pairings, introduce font conditionals and augment properties.
The script splits headlines into rows before resizing each row to fill the available horizontal space. The ideal number of characters to set on each row is calculated by dividing the available width by the pixel font-size – the script then uses this ideal character count to split the headline into word combinations that are displayed as separate rows of text.
Little Time-Savers Link
This little jQuery library provides you with an intelligent way of updating relative timestamps in your documents. Smart Time Ago checks and updates every 60 seconds the relative time, within a scope which you specify at the start. It checks the newest time in your scope and tunes the checking time interval to a proper value. The tool can be used as a jQuery plugin, or – if using node – can be installed from npm.
TimeAgo properties and sorts them from newest to oldest.
A problem: some of the images in the layout are very tall, so by the time you scrolled down to the bottom of the images, you would have to scroll back up just to read the description of the images or navigation items. The solution: make the content sticky as you are scrolling. This library solves this problem.
Human descriptions for a span of time are often fuzzier than a computer naturally computes. For example, how long does “in 1 month” mean? We casually talk about four weeks, but in fact there is only one month in a year which is four weeks long. Countdown.js tackles this problem by producing an accurate and intuitive description of timespans which are consistent as time goes on.
A small library to provide some basic geo functions like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa.
A simple jQuery plugin to display the weather information for any location. The data is pulled from the public Yahoo! Weather feed via the YQL API.
A library that provides extra String methods to normalize text strings and manipulate them.
Images, Maps, Graphs and Visualization Libraries Link
If you often deal with government projects, university departments or any websites of sophisticated organizations, every now and again you’ll be asked to design a nice visualization that would explain the various divisions, structures and internal hierarchy of those organizations. Where do you start? Well, creating a Subway Map-alike visualization is an option worth considering.
This library allows you to easily use Google Maps in your projects. Extensive documentation or large amount of code aren’t required anymore. You might want to check out Gmap3 jQuery plugin132 as well.
A library for creating tile-based interactive maps for desktop and mobile browsers. An easy-to-use API is available, and the tool emphasizes usability, performance, flexibility and excellent browser support. The library offers a variety of map layers, including tiles, markers, pop-ups, image overlays and GeoJSON. It supports panning on both mobile and desktop browsers, double-tap zoom on mobile browsers (plus multi-touch zoom on iOS) and more. On iOS, hardware acceleration is enabled, and Leaflet has a modular structure that lets you reduce the size of the library to make it even faster. The project is open source and available for further development and forking on GitHub.
A script that checks each image on your website, when it’s loaded by a user, and replaces low-resolution image with their high-resolution equivalent, if available. It’s assumed that you use Apple’s high resolution modifier (
@2x) to designate high resolution versions of images.
A graph visualization library for building trees with connected nodes of data. Arbor.js is essentially a layout algorithm with abstractions for graph organization and screen refresh handling.
This library is supposed to pull in media from different sources. It has built-in support for pulling in data from Twitter, YouTube, Flickr, Vimeo, Google Maps and SoundCloud—and more will be included in the near future. You can easily fill in data from a Google spreadsheet, or use a more detailed method such as JSON to create your time-line. You can also host it on your website by using the Timeline jQuery plugin. The library is available on GitHub142, or as WordPress plugin143.
Unicon is a Grunt.js task that makes it easy to manage icons and background images for all devices, preferring HD (retina) SVG icons but also provides fallback support for standard definition browsers, and old browsers alike. From a CSS perspective, it’s easy to use, as it generates a class referencing each icon, and doesn’t use CSS sprites.
This device recognition library, gives websites the ability to gauge the users device capabilities before the image is requested from the server. Judging display resolution and network speed, it customizes the img src attribute to optimize the websites image resolution to the individual users hardware.
This technique achieves an aesthetically pleasing visual effect. The CSS3
border-radius properties are used to create the magnifying glass itself, while jQuery is used to detect the cursor coordinates and mouse movements and present the larger image. And when your cursor moves off the image, the magnifying glass elegantly fades away. The included tutorial makes it very easy to learn and understand how to achieve this effect. The technique includes both a small and a large image in the markup, so optimizing the technique to load a larger image on demand might be a good idea.
Chronoline.js is a library that allows you to create a chronology time-line out of events on a horizontal timescale. From a list of dates and events, it can generate a graphical representation of schedules, historical events, deadlines, and more.
This D3 plugin helps you to visualize time series and construct better real-time dashboards, pulling data from Graphite, Cube and other sources. Cubism scales and reduces server load by pulling only the most recent values. Cubism can scale easily to hundreds of metrics updating every ten seconds. Cubism’s horizon charts allow you to see many more metrics at-a-glance space than standard area charts.
An alternative library for creating fast, dynamic and interactive HTML5 visualizations.
Last Click Link
This HTML book is designed to get you comfortable working through common problems you’ll be called upon to solve using jQuery. You can read the content and try the various interactive examples. Each chapter will cover a concept and give you a chance to try example code related to the concept. Written by Rebecca Murphey and recently updated by her and the rest of the gang at Bocoup.
Due to the length of this resource, it was split into two parts:
- Part 1: Web Forms, Typography, Time-Savers and Images
- Part 2: Text, Tables, Lists and Useful Development Tools1677
- 1 http://www.igvita.com/2012/07/19/latency-the-new-web-performance-bottleneck/
- 4 https://www.smashingmagazine.com/2010/04/45-useful-jquery-techniques-and-plugins/
- 6 https://www.smashingmagazine.com/2012/05/50-jquery-function-demos-for-aspiring-web-developers/
- 8 https://www.smashingmagazine.com/2011/12/05/sisyphus-js-client-side-drafts-and-more/
- 9 https://github.com/blueimp/jQuery-File-Upload
- 10 https://github.com/23/resumable.js
- 11 http://ivaynberg.github.com/select2/
- 12 http://labs.voronianski.com/jquery.avgrund.js/
- 13 https://github.com/remybach/jQuery.superLabels
- 14 http://designwithpc.com/Plugins/ddSlick
- 15 http://projects.nickstakenburg.com/tipped
- 16 http://textextjs.com/
- 17 http://rickharrison.github.com/validate.js/
- 18 http://www.egrappler.com/jquery-credit-card-validation-plugin-smart-validate/
- 19 https://github.com/Kicksend/mailcheck
- 20 https://github.com/danpalmer/jquery.complexify.js
- 21 https://github.com/ftlabs/ftcolumnflow
- 22 http://jbrewer.github.com/Responsive-Measure/
- 23 http://artequalswork.com/posts/on-widows.php
- 24 http://nicewebtype.com/notes/2012/02/03/molten-leading-or-fluid-line-height/
- 25 http://fittextjs.com/
- 26 http://letteringjs.com/
- 27 http://kerningjs.com/
- 28 http://josscrowcroft.github.com/money.js/
- 29 http://momentjs.com/
- 30 http://pragmaticly.github.com/smart-time-ago/
- 31 http://josscrowcroft.github.com/accounting.js/
- 32 https://github.com/ScottHamper/Cookies
- 33 http://gildas-lormeau.github.com/zip.js/
- 34 http://stringjs.com/
- 35 http://countdownjs.org/
- 36 http://viget.com/inspire/jquery-stick-em
- 37 http://hpneo.github.com/gmaps/
- 38 http://widgets.better2web.com/loader/
- 39 http://lipka.github.com/piecon/
- 40 https://github.com/makeable/Notificon
- 41 http://jvectormap.com/
- 42 http://www.kalyani.com/2010/10/subway-map-visualization-jquery-plugin/
- 43 http://hpneo.github.com/gmaps/
- 44 http://twostepmedia.co.uk/svgeezy/
- 45 http://www.justgage.com/
- 46 http://arborjs.org/
- 47 http://timeline.verite.co/
- 48 http://retinajs.com/
- 49 http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3
- 50 http://code.shutterstock.com/rickshaw/
- 51 http://www.flotcharts.org/
- 52 http://square.github.com/cubism/
- 53 http://ivaynberg.github.com/select2/
- 54 https://github.com/harvesthq/chosen/
- 55 http://ivaynberg.github.com/select2/
- 56 https://www.smashingmagazine.com/2011/12/05/sisyphus-js-client-side-drafts-and-more/
- 57 https://www.smashingmagazine.com/2011/12/05/sisyphus-js-client-side-drafts-and-more/
- 58 http://davidwalsh.name/validate-credit-cards
- 59 http://www.egrappler.com/jquery-credit-card-validation-plugin-smart-validate/
- 60 http://textextjs.com/
- 61 http://textextjs.com/
- 62 http://labs.voronianski.com/jquery.avgrund.js/
- 63 https://github.com/hakimel/avgrund/
- 64 http://labs.voronianski.com/jquery.avgrund.js/
- 65 http://documentcloud.github.com/visualsearch/
- 66 https://github.com/Kicksend/mailcheck
- 67 https://github.com/Kicksend/mailcheck
- 68 http://rickharrison.github.com/validate.js/
- 69 http://rickharrison.github.com/validate.js/
- 70 https://github.com/blueimp/jQuery-File-Upload
- 71 https://github.com/blueimp/jQuery-File-Upload
- 72 http://jamescryer.github.com/grumble.js/
- 73 http://projects.nickstakenburg.com/tipped
- 74 http://jamescryer.github.com/grumble.js/
- 75 http://bootboxjs.com/
- 76 http://www.dangrossman.info/2012/08/20/a-date-range-picker-for-twitter-bootstrap/
- 77 http://bootsnipp.com/
- 78 http://bootboxjs.com/
- 79 http://designwithpc.com/Plugins/ddSlick
- 80 http://azadcreative.com/2012/01/bulletproof-css3-dropdown-navigation-menu/
- 81 http://designwithpc.com/Plugins/ddSlick
- 82 http://needim.github.com/noty/
- 83 http://needim.github.com/noty/
- 84 https://github.com/danpalmer/jquery.complexify.js
- 85 https://github.com/danpalmer/jquery.complexify.js
- 86 https://github.com/remybach/jQuery.superLabels
- 87 https://github.com/wwwtyro/cryptico
- 88 https://github.com/ftlabs/ftcolumnflow
- 89 https://github.com/ftlabs/ftcolumnflow
- 90 http://jbrewer.github.com/Responsive-Measure/
- 91 http://jbrewer.github.com/Responsive-Measure/
- 92 http://artequalswork.com/posts/on-widows.php
- 93 http://artequalswork.com/posts/on-widows.php
- 94 http://nicewebtype.com/notes/2012/02/03/molten-leading-or-fluid-line-height/
- 95 http://nicewebtype.com/notes/2012/02/03/molten-leading-or-fluid-line-height/
- 96 http://fittextjs.com/
- 97 http://fittextjs.com/
- 98 http://fittextjs.com/
- 99 http://kerningjs.com/
- 100 http://kerningjs.com/
- 101 http://josscrowcroft.github.com/money.js/
- 102 http://josscrowcroft.github.com/money.js/
- 103 http://josscrowcroft.github.com/accounting.js/
- 104 http://josscrowcroft.github.com/accounting.js/
- 105 http://momentjs.com/
- 106 http://momentjs.com/
- 107 http://pragmaticly.github.com/smart-time-ago/
- 108 http://pragmaticly.github.com/smart-time-ago/
- 109 https://github.com/cjstewart88/sortByTimeAgo
- 110 http://lipka.github.com/piecon/
- 111 http://lipka.github.com/piecon/
- 112 https://github.com/makeable/Notificon
- 113 http://viget.com/inspire/jquery-stick-em
- 114 http://viget.com/inspire/jquery-stick-em
- 115 http://countdownjs.org/
- 116 https://github.com/manuelbieh/geolib
- 117 https://github.com/manuelbieh/geolib
- 118 https://github.com/ScottHamper/Cookies
- 119 http://www.ravelrumba.com/blog/firstimpression-js-library-detecting-new-visitors/
- 120 https://github.com/carhartl/jquery-cookie
- 121 http://lab.rog.ie/chirp/
- 122 http://lab.rog.ie/chirp/
- 123 http://monkeecreate.github.com/jquery.simpleWeather/
- 124 http://gildas-lormeau.github.com/zip.js/
- 125 https://bitbucket.org/lindenlab/llsd/raw/7d2646cd3f9b/js/typedarray.js
- 126 http://stringjs.com/
- 127 http://jvectormap.com/
- 128 http://jvectormap.com/
- 129 http://www.kalyani.com/2010/10/subway-map-visualization-jquery-plugin/
- 130 http://www.kalyani.com/2010/10/subway-map-visualization-jquery-plugin/
- 131 http://hpneo.github.com/gmaps/
- 132 http://gmap3.net/
- 133 http://hpneo.github.com/gmaps/
- 134 http://twostepmedia.co.uk/svgeezy/
- 135 http://twostepmedia.co.uk/svgeezy/
- 136 http://retinajs.com/
- 137 http://www.justgage.com/
- 138 http://www.justgage.com/
- 139 http://arborjs.org/
- 140 http://arborjs.org/
- 141 http://timeline.verite.co/
- 142 https://github.com/VeriteCo/Timeline
- 143 http://wordpress.org/extend/plugins/timeline-verite-shortcode/
- 144 http://timeline.verite.co/
- 145 https://github.com/filamentgroup/unicon
- 146 https://github.com/adamdbradley/foresight.js
- 147 http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3
- 148 https://www.smashingmagazine.com/wp-content/uploads/2012/08/nl-2.jpg
- 149 http://code.shutterstock.com/rickshaw/
- 150 http://code.shutterstock.com/rickshaw/
- 151 http://www.flotcharts.org/
- 152 http://www.flotcharts.org/
- 153 http://stoicloofah.github.com/chronoline.js/
- 154 http://stoicloofah.github.com/chronoline.js/
- 155 http://square.github.com/cubism/
- 156 http://square.github.com/cubism/
- 157 http://www.humblesoftware.com/envision
- 158 http://www.humblesoftware.com/envision
- 159 http://selection.datavisualization.ch
- 160 http://selection.datavisualization.ch
- 161 http://jqfundamentals.com/
- 162 http://jqfundamentals.com/