Welcome Guest, Not a member yet? Register   Sign In
Ajax Question
#4

I think I don't understand your problem.
You are using on('keyup'), which fires the ajax routine every time you release a key on your keyboard. So when you type 'city', it is fired 4 times.
If you use one('keyup'), the same happens, but only once. So the <p class="well"></p> will be inserted after your input just once.
Reply


Messages In This Thread
Ajax Question - by wolfgang1983 - 03-25-2017, 02:08 AM
RE: Ajax Question - by Wouter60 - 03-25-2017, 02:36 AM
RE: Ajax Question - by wolfgang1983 - 03-25-2017, 02:52 AM
RE: Ajax Question - by Wouter60 - 03-25-2017, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB