[jQuery] Auto complete suggestion header
Hi,
I have tried to added a header to my suggestion. When i freshly load
the page and enter any text the suggestions are coming but the header
is not coming, but when i delete the selection and enter the text
again the new suggestions are coming with header. please find the code
below for the reference.
$results.prepend('<div id="ac_top"></div>');
if (options.closeButton) $results.prepend('<p id="close_button"><a
href="javascript:void(0)" onclick="close_results(this);"
title="Disable this">Disable</a>');
if (options.header) $('#ac_top').prepend('<div
id="ac_header">'+options.header+'</div>');
I have modified the jquery.autocomplete.js to added this header.