felixge / debuggable-scraps

MIT licensed code without warranty ; )

This URL has Read+Write access

commit  28f4cb7252e75406732f7024f947d96bae440fcf
tree    9d829c29cec194a3d9bf543af71979487a710e88
parent  2fa42a95d10b9fefb76ca393599570d6927ea115
name age message
..
file jquery.jac.js Loading commit data...
file readme.textile
jquery/jac/readme.textile

jQuery Auto Completer Plugin (Jac)

A Jquery plugin that will allow you to tab-complete a set of strings found in your markup

Usage / Docs

Auto complete a comment textarea with names scraped from the markup of the page (all strong elements with class author-name). If somebody starts to type in the name of any of the values captured by $(‘strong.author-name’) and then hits tab, the name will be auto-completed.

	$('#comment-box').jac({items: 'strong.author-name'});

Auto complete a comment textarea with a pre-defined array of tab values:

	$('#comment-box').jac({items: ['lorem', 'ipsum', 'declorum', 'est']});

Missing Features

  • Support for tabbing through multiple possible matches instead of only making the first one available
  • Show a visual clue on the available matches – otherwise users might not even notice this plugin being used

Known Bugs

None