Posted on: 7/6/2015 4:50:45 PM | Views : 807

What's the best option to apply autocomplete on 2 textbox simultanously, in such a way that if one option say Anee is selected from first textbox, then it won't be visible in 2nd textbox and vice versa. I had done it on focus and change event but the problem is that when my focus shifts from 1st textbox, then,rather then typing in 2nd textbox; if I again moves my cursor to 1st textbox, and remove the text ie anee then that removed text option won't be displayed again in autocomplete till I type something and press backspace in 1st textbox. Below is how I had implemented Autocomplete
function initializer(IsCredit,groupCode) { var PaymentVoucherCreditDebit =(IsCredit=1)? $("#<%=txtPaymentVC.ClientID %>") : $("#<%=txtPaymentVD.ClientID %>"); PaymentVoucherCreditDebit.autocomplete({ autofocus: true, source: function (request, response) { var inputdata = "{'SearchText': '" + request.term + &q ...

Go to the complete details ...