Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i am displaying data in an autocomplete , my input box dont get the value first time only second times
so for example when typing A, it dont dislay but second time i type A it displays the value but i want to to display the value on keypress the first time and not second, i am using a sharepoint hosted app, and without document.ready it wont work at also, so how could i do to preventing to need to type 2 times to display value?
HTML
$(document).ready(function () {
    $("#subSiteTitle").keypress(function () {
Posted
Comments
ZurdoDev 12-Jan-15 7:46am    
You need to debug it. It's possible the auto complete you are using waits for at least 2 characters before it begins querying the db.
Sergey Alexandrovich Kryukov 12-Jan-15 15:20pm    
You did not show the code where the problem is. How can we guess what is written after the second '{'?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900