45+ New jQuery Techniques For Good User Experience

Advertisement

JavaScript libraries have made huge leaps and bounds in helping developers write code and develop products more quickly. jQuery is one of the most popular JavaScript frameworks, with powerful tools that improve the user’s interaction with Web applications. jQuery has an additional advantage in that it allows developers to select elements on a page using CSS-like syntax.

To help you take it up a notch, we share below some methods that can help you give visitors to your website an amazing user experience. Here are over 45 impressive jQuery plug-ins and techniques that have been recently created and that could make the development of your next website an easier and more interesting experience than the last.

You may want to take a look at the following related posts:

Dynamic Content

1. Build A Login Form With jQuery5
In this tutorial, we’ll create a sliding panel, that slides in to reveal more content, using JQuery to animate the height of the panel. In this case, we will be creating a hypothetical login for the new tutsplus area that’s coming soon.

jQuery6

2. Spoiler Revealer with jQuery7
A simple technique that hides some content first and fades it in once a link is clicked.

jQuery8

3. AJAX Upload9
This AJAX file upload plug-in allows users to easily upload multiple files without having to refresh the page. In addition, you can use any element to trigger the file selection window. The plug-in creates a semi-transparent file input screen over the button you specify, so when a user clicks on the button, the normal file selection window is shown. After the user selects a file, the plug-in submits the form that contains the file input to an iFrame. So it isn’t true AJAX but provides the same user experience.

jQuery10

4. FCBKcomplete11
Give your users fancy Facebook-like dynamic inputs, with auto-complete and pre-added values.

jQuery12

5. Create Accessible Charts Using Canvas and jQuery13
This tool is proof that you can use the <canvas> element to illustrate HTML table data. The idea is a good one: putting the data in a table allows it to remain accessible, while the chart can be shown for visual enhancement.

jQuery14

Form Manipulation

6. Radio Button and Check Box Replacement15
This jQuery tool replaces radio buttons and check boxes with a more appealing display.

jQuery16

7. Submit a Form without a Page Refresh17

jQuery18

8. jQuery AJAX Contact Form19
Here is a quick and easy way to make a jQuery AJAX contact form with a “honeypot” to foil email bots, load success and error messages dynamically without leaving the page and provide descriptive error messages detailing why submitted values have failed validation.

jQuery20

9. Simple jQuery Form Validation21
This jQuery form shows live form-input validators both server-side and browser-side.

jQuery22

Navigation Menus

10. jQuery Context Menu23
A context menu plug-in for jQuery that features easy implementation, keyboard shortcuts, CSS styling and control methods.

jQuery24

11. Kwicks for jQuery25
Kwicks for jQuery started off as a port of the incredibly attractive MooTools framework, but has evolved into a highly customizable and versatile widget.

jQuery26

12. jQuery iPod-style Drilldown Menu27
“We created an iPod-style drilldown menu to help users traverse hierarchical data quickly and with control. It’s especially helpful when organizing large data structures that don’t translate well into traditional dropdown or fly-out menus.”

jQuery28

13. jQuery File Tree29
The jQuery File Tree is a configurable AJAX file-browser plug-in for jQuery. You can create a customized, fully-interactive file tree with as little as one line of JavaScript code.

jQuery30

14. How to Create a MooTools Home Page-Inspired Navigation Effect31
In this tutorial, you’ll recreate the same effect seen in MooTools’s menu, but in jQuery!

jQuery32

15. CSS Sprites233
This tutorial demonstrates how to implement inline CSS Sprites2 using jQuery.

jQuery34

Manipulating Content

16. jQuery books widget35
With some custom JavaScript and jQuery magic you can create some interesting widgets. A good way to demonstrate this functionality is by building a browsable Amazon.com books widget.

jQuery36

17. Text Size Slider37
This tutorial explains how to use a slider to control the text size of an article on a page. This lets the user control exactly the size that suits them, and is also a pretty impressive feature to have on a site.

jQuery38

18. Pagination39
Create navigational elements: when you have a large number of items, you can group them into pages and present navigational elements that allow users to move from one page to another.

jQuery40

19. Coda-Slider41
As with the last tool, groups items together using navigational elements that allow users to move from one page to another.

jQuery42

20. Creating a Slick Auto-Playing Featured-Content Slider43
If you love the Coda-Slider plug-in44 for jQuery, then you will find this plug-in very useful for displaying lots of content in a small area. This nice plug-in adds some features not found in the original Coda-Slider, such as slowly cycling through panels, auto-playing different types of custom content. An arrow indicator serves as a visual indication of which panel you are currently viewing.

jQuery45

21. haccordion48
A simple horizontal accordion plug-in for jQuery.

jQuery49

Tabular Data and Grids

22. Table Row Checkbox Toggle50
This tool generically adds a toggle function to any table row you specify based on a CSS class name. It will, by default, toggle on any check boxes within that table row.

jQuery51

23. Tablesorter52
Tablesorter is a jQuery plug-in that turns a standard HTML table with <th> and <td> tags into a sortable table without the need for page refreshes. Tablesorter can successfully parse and sort many types of data, including linked data, in a cell.

jQuery53

24. TableEditor54
TableEditor provides flexible in-place editing of HTML tables. User-defined handler functions can easily be dropped in to update, for example, a data source via an AJAX request.

jQuery55

25. Scrollable HTML Table56
This JavaScript code can be used to convert ordinary HTML tables into scrollable ones.

jQuery57

Lightbox Techniques

26. Revealing Photo Slider58
Learn how to create a thumbnail photo gallery, where clicking a button reveals the entire photo and more information about that photo.

jQuery59

27. FancyBox60
FancyBox was born to automatically scale large images to fit in windows, adding a nice drop-shadow under the zoomed item. It can be used to group related items and add navigation between them (using a pre-loading function). FancyBox is totally customizable through settings and CSS.

jQuery61

28. Facebox Image and Content Viewer 62
Facebox is a lightweight Facebook-style Lightbox that can display images, divs, and even entirely remote pages (via AJAX) inline on a page and on demand. It uses the compact jQuery library as its engine, unlike Lightbox v2.0, which uses Prototype.

jQuery63

29. jQuery.popeye64
jQuery.popeye is a plug-in that transforms an unordered list of images into a simple image gallery. When an image is clicked, it enlarges Lightbox-style. The images are displayed in a box with “Previous” and “Next” controls, and information about the images can be included.

jQuery65

Image Galleries and Viewers

30. Simple Controls Gallery66
Simple Controls Gallery rotates and displays each image by fading it into view over the previous one, with navigation controls that pop up when the mouse hovers over the gallery. The controls allow the user to play, pause or jump to a specific image in the gallery.

jQuery67

31. Agile Carousel68
This jQuery plug-in allows you to easily create a custom carousel. Use the jQuery UI to enable many different types of transition. The plug-in uses PHP to call images from the folder you specify. Configure many different options including controls, slide timer length, easing type, transition type and more!

jQuery69

Browser Tweaks

32. Setting Equal Heights with jQuery70
A script to equalize the heights of boxes within the same container and create a tidy grid.

jQuery71

33. jQuery IE6 PNG Transparency Fix72
Another IE6 PNG fix that uses jQuery selectors to automatically fix all PNG images on a page.

34. BGI frame73
This tool helps ease the pain of dealing with IE z-index issues. You can find a demo here74.

35. Fix Overflow75
IE puts scroll bars inside overflowing elements, and if an element is only one line, the scroll bar will cover it. This plug-in fixes that issue.

jQuery76

36. Lazy Load77
Lazy Load delays the loading of images below the fold on long pages. As the user scrolls down, the images are loaded as needed. Check out the demo here78.

37. Maxlength79
It’s a fairly common design practice to limit the number of characters a user can input in a field while giving feedback on how many spaces are left. This plug-in automates that task.

jQuery80

Animation Effects

38. Scrollable81
Scrollable is a flexible and lightweight (3.9 KB) jQuery plug-in for creating scrollable content. Scrollable items can contain any HTML, such as text, images, forms, video or any combination of them. You can make items scroll horizontally or vertically and decide how many items are visible at once.

jQuery82

39. jQuery Fading Menu – Replacing Content83
“Instead of thinking about CSS as page layout and a way to style your page when it loads, you can use in animation and change it on-the-fly to react to events that happen on your page. Take for example a menu. You can take the “click” event that happens when clicking on a menu to do lots of stuff.”

jQuery84

40. Build an Animated Cartoon Robot with jQuery85
This effect simulates a faux 3-D animated background reminiscent of old-school side-scrolling video games (and not unlike the parallax effect). This effect is created by layering several empty divs over each other, with transparent PNGs as background images. The backgrounds are animated at different speeds using jQuery.

jQuery86

41. Flip87
Flip is a plug-in for jQuery that “flips” page elements in four directions. Compatible with Firefox 2+, Internet Explorer 6+, Safari 3.1 (for Windows) and Google Chrome.

jQuery88

42. Use jQuery for Background Image Animations90
Animate your menu whenever a user hovers over an item with this effect.

jQuery91

Image Manipulation

43. Jcrop92
Jcrop is the quick and easy way to add image-cropping functionality to your Web application. It combines the ease of use of a typical jQuery plug-in with a powerful cross-platform DHTML cropping engine that is faithful to familiar desktop graphics applications.

jQuery93

44. jQZoom94
JQZoom is a JavaScript image magnifier that makes it really easy to magnify what you want. It is easy to customize and works on all modern browsers.

jQuery95

Miscellaneous

45. Date Range Picker96
A rich date-range widget that uses the jQuery UI’s date picker and some additional custom interaction.

jQuery97

46. Sortable Lists98
Unordered lists are commonly used to structure a website’s navigation. Having the ability to re-order such lists would be extremely useful. Here is a method to easily save and reload the list element order without getting lost as the page is refreshed.

jQuery99

47. Amazing Music Player Using Mouse Gestures and Hotkeys100
Learn how to create an amazing music player, coded in XHTML and jQuery, that makes use of mouse gestures and hotkeys. You can click and drag the mouse to interact with the music player’s interface or use directional keys and the space bar instead of the mouse.

jQuery101

48. Script for Tracking Outbound Links in Google Analytics with jQuery102
This code snippet uses Google Analytics and jQuery to automatically track outbound links. This interesting script enhances behavior by comparing the link’s domain to the current page’s domain and, if they are different, triggering the behavior. This is helpful when using a CMS or other tool that generates full URLs, including the “http://,” instead of relative ones.

<script type="text/javascript">
	$('#content a:not(.popupwindow)').filter(function() {
		var theHref = this;
		if (theHref.hostname && theHref.hostname !== location.hostname) {
			$(theHref).not(".noAutoIcon").addClass("offSite");
			$(theHref).not(".noAutoLink").attr('target','_blank').bind('click keypress', function(event) {
				var code=event.charCode || event.keyCode;
				if (!code || (code && code == 13)) {
					if(pageTracker){
						var fixedLink = this.href;
						fixedLink = fixedLink.replace(/https?://(.*)/,"$1");
						fixedLink = '/outgoing/'   fixedLink;
						pageTracker._trackPageview(fixedLink);
					};
				};
			});
		};
	});
</script>

49. jGrowl103
jGrowl is a jQuery plug-in that delivers unobtrusive messages within the browser, similar to the way that OS X’s Growl Framework104 works.

jQuery105

Footnotes

  1. 1 http://www.smashingmagazine.com/2008/09/16/jquery-examples-and-best-practices/
  2. 2 http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/
  3. 3 http://www.smashingmagazine.com/2007/06/20/ajax-javascript-solutions-for-professional-coding/
  4. 4 http://www.smashingmagazine.com/2008/04/15/60-more-ajax-and-javascript-solutions-for-professional-coding/
  5. 5 http://nettuts.com/javascript-ajax/build-a-top-panel-with-jquery/
  6. 6 http://nettuts.com/javascript-ajax/build-a-top-panel-with-jquery/
  7. 7 http://css-tricks.com/examples/SpoilerRevealer/
  8. 8 http://css-tricks.com/examples/SpoilerRevealer/
  9. 9 http://valums.com/projects/ajax-upload/
  10. 10 http://valums.com/s/p/ajax-upload/demo.htm
  11. 11 http://www.emposha.com/javascript/jquery/jquerymultiselect.html
  12. 12 http://www.emposha.com/javascript/jquery/jquerymultiselect.html
  13. 13 http://www.filamentgroup.com/lab/creating_accessible_charts_using_canvas_and_jquery
  14. 14 http://www.filamentgroup.com/lab/creating_accessible_charts_using_canvas_and_jquery
  15. 15 http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/
  16. 16 http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/
  17. 17 http://nettuts.com/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/
  18. 18 http://nettuts.com/demos/contactform/
  19. 19 http://midmodesign.com/news/coding/jquery-ajax-contact-form-with-honeypot/
  20. 20 http://midmodesign.com/downloads/ajaxcontactformv1/
  21. 21 http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html
  22. 22 http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html
  23. 23 http://abeautifulsite.net/notebook/80
  24. 24 http://abeautifulsite.net/notebook_files/80/demo/jqueryContextMenu.html
  25. 25 http://www.jeremymartin.name/projects.php?project=kwicks
  26. 26 http://www.jeremymartin.name/examples/kwicks.php?example=1
  27. 27 http://www.filamentgroup.com/lab/jquery_ipod_style_drilldown_menu
  28. 28 http://www.filamentgroup.com/lab/jquery_ipod_style_drilldown_menu
  29. 29 http://abeautifulsite.net/notebook.php?article=58
  30. 30 http://abeautifulsite.net/notebook_files/58/demo/
  31. 31 http://nettuts.com/html-css-techniques/how-to-create-a-mootools-homepage-inspired-navigation-effect-using-jquery/
  32. 32 http://nettuts.s3.amazonaws.com/004_Moo/tutorial/demo/demo.html
  33. 33 http://alistapart.com/articles/sprites2
  34. 34 http://alistapart.com/d/sprites2/examples/example6-function.html
  35. 35 http://nettuts.com/tutorials/javascript-ajax/create-an-amazoncom-books-widget-with-jquery-and-xml/
  36. 36 http://nettuts.com/tutorials/javascript-ajax/create-an-amazoncom-books-widget-with-jquery-and-xml/
  37. 37 http://nettuts.com/tutorials/javascript-ajax/use-the-jquery-ui-to-control-the-size-of-your-text/
  38. 38 http://nettuts.com/tutorials/javascript-ajax/use-the-jquery-ui-to-control-the-size-of-your-text/
  39. 39 http://plugins.jquery.com/project/pagination
  40. 40 http://d-scribe.de/webtools/jquery-pagination/demo.htm
  41. 41 http://www.ndoherty.com/demos/coda-slider/1.1.1/
  42. 42 http://www.ndoherty.com/demos/coda-slider/1.1.1/
  43. 43 http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/
  44. 44 http://www.ndoherty.com/demos/coda-slider/
  45. 45 http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/
  46. 46 http://css-tricks.com/examples/FeaturedContentSlider/
  47. 47 http://css-tricks.com/examples/FeaturedContentSlider.zip
  48. 48 http://letmehaveblog.blogspot.com/2007/10/haccordion-simple-horizontal-accordion.html
  49. 49 http://letmehaveblog.blogspot.com/2007/10/haccordion-simple-horizontal-accordion.html
  50. 50 http://pure-essence.net/stuff/webTips/jqueryTableRowCheckboxToggle.html
  51. 51 http://pure-essence.net/stuff/webTips/jqueryTableRowCheckboxToggle.html
  52. 52 http://tablesorter.com/docs/
  53. 53 http://tablesorter.com/docs/
  54. 54 http://dev.iceburg.net/jquery/tableEditor/demo.php
  55. 55 http://dev.iceburg.net/jquery/tableEditor/demo.php
  56. 56 http://www.webtoolkit.info/scrollable-html-table-plugin-for-jquery.html
  57. 57 http://www.webtoolkit.info/demo/jquery/scrollable/demo.html
  58. 58 http://css-tricks.com/revealing-photo-slider/
  59. 59 http://css-tricks.com/revealing-photo-slider/
  60. 60 http://fancy.klade.lv/
  61. 61 http://fancy.klade.lv/
  62. 62 http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm
  63. 63 http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm
  64. 64 http://herr-schuessler.de/blog/jquerypopeye-an-inline-lightbox-alternative/
  65. 65 http://dev.herr-schuessler.de/examples/jquery-popeye/
  66. 66 http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
  67. 67 http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
  68. 68 http://code.google.com/p/agile-carousel/
  69. 69 http://www.5bosses.com/examples/agile_carousel/multi_example/carousel.html
  70. 70 http://www.filamentgroup.com/lab/setting_equal_heights_with_jquery/
  71. 71 http://www.filamentgroup.com/examples/equalHeights/
  72. 72 http://www.emposha.com/javascript/jquery-ie6-png-transperency-fix.html
  73. 73 http://plugins.jquery.com/project/bgiframe
  74. 74 http://brandonaaron.net/jquery/plugins/bgiframe/test/
  75. 75 http://remysharp.com/2008/01/21/fixing-ie-overflow-problem/
  76. 76 http://remysharp.com/2008/01/21/fixing-ie-overflow-problem/
  77. 77 http://plugins.jquery.com/project/lazyload
  78. 78 http://www.appelsiini.net/projects/lazyload/enabled.html
  79. 79 http://remysharp.com/2008/06/30/maxlength-plugin/
  80. 80 http://remysharp.com/demo/maxlength.html
  81. 81 http://www.flowplayer.org/tools/scrollable.html
  82. 82 http://www.flowplayer.org/tools/scrollable.html
  83. 83 http://css-tricks.com/learning-jquery-fading-menu-replacing-content/
  84. 84 http://css-tricks.com/learning-jquery-fading-menu-replacing-content/
  85. 85 http://css-tricks.com/jquery-robot/
  86. 86 http://robot.anthonycalzadilla.com/
  87. 87 http://lab.smashup.it/flip
  88. 88 http://lab.smashup.it/flip
  89. 89 http://lab.smashup.it/flip/files/jquery.flip-0.4.1.zip
  90. 90 http://snook.ca/archives/javascript/jquery-bg-image-animations/
  91. 91 http://snook.ca/technical/jquery-bg/
  92. 92 http://deepliquid.com/content/Jcrop.html
  93. 93 http://deepliquid.com/projects/Jcrop/demos.php
  94. 94 http://www.mind-projects.it/projects/jqzoom/
  95. 95 http://www.mind-projects.it/projects/jqzoom/
  96. 96 http://www.filamentgroup.com/lab/update_date_range_picker_with_jquery_ui/
  97. 97 http://www.filamentgroup.com/lab/update_date_range_picker_with_jquery_ui/
  98. 98 http://www.shopdev.co.uk/blog/sortable-lists-using-jquery-ui/
  99. 99 http://www.shopdev.co.uk/blog/sortables.html
  100. 100 http://yensdesign.com/2008/12/create-an-amazing-music-player-using-mouse-gestures-hotkeys-in-jquery/
  101. 101 http://yensdesign.com/tutorials/musicplayer/
  102. 102 http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/
  103. 103 http://www.stanlemon.net/projects/jgrowl.html
  104. 104 http://growl.info/
  105. 105 http://www.stanlemon.net/projects/jgrowl.html

↑ Back to top Tweet itShare on Facebook

Noura Yehia is a Web designer and blogger and the former owner of noupe.com. If you want to connect with the author, you can follow her on Twitter.

Advertising
  1. 1

    Awsome info and straight to the point. I don’t know if this is truly the best place to ask but do you guys have any thoughts on where to get some professional writers? Thank you :)

    0

↑ Back to top