The main purpose of this plugin is to generate and show autocomplete suggestion when filling-in a form.
This pluginn differs from others becuase it can return as many as you need values and you can excecute callback function finally. This enables yo fill-in many fields when user selects only one option from suggestion list. And it is ultra lightweight and simple.
USAGE EXAMPLE
1. Calling plugin
$('#input_that_user_enter_query').autocompl({}, function(m){
$('#first_field').val(m['first_val']);
$('#seconf_field').val(m['second_val']);
$('#third_field').val(m['third_val']);
/* and so more... */
});
2. Available options
$('#input_that_user_enter_query').autocompl({
url: '/search.php?q=', /* script to wun query, must return JSON */
lidPref: 'jqacp_', /* html ul li id prefix */
ulClass: 'jqacp', /* html ul class */