Over the last few articles about jQuery, we've shown you how to write plug-ins to encourage reusable code. Sometimes, before writing a plug-in your first step should really be to see if someone else has done it for you.
The jQuery community has a vast array of plug-ins freely available for use – you can see them at the jQuery plug-ins site
. There are also existing UI widgets available from the jQuery-UI project.
In this tutorial, we're going to take a jQuery-UI widget and show you how to implement it – the autocomplete widget.