Hai, I have one email sending section. the can be fully worked on the basis of the ajax functionality. But I dont need to create the instance of the autocomplete in the $(document).ready(); Because my need is to create the instance of the autocomplete after the completion of the login.My login is working on the basis of ajax functionality.After the login, the email section div will come without refresh the page.I need to create the instance of the autocomplete in this time.
I am trying for creating the instance of the autocomplate in the keyup .But this is not work properly. The following plugin i have used for this autocomplete, http://docs.jquery.com/Plugins/Autocomplete here is my code sample, var path = base_url+'/affiliates/auto_complete_contact'; var resText = $.ajax({ type:"POST", url:path, async:false }).responseText; if(resText != "failed"){ var data = resText.split(","); $("#share_contact").autocomplete(data,{multiple: true,mustMatch: true,autoFill: true}); }