> but for some reason the input field stays empty this way:
Yeah, that reason is known as asynchronous programming. When you make that ajax call you will get a response some time in the future, not immediately.
> but for some reason the input field stays empty this way:
Yeah, that reason is known as asynchronous programming. When you make that ajax call you will get a response some time in the future, not immediately.