 <p>if your text box coming dynamically then you should try </p> <pre><code>$(document).on("keyup", ".typeahead" , function() { getAllActiveUsers(); }); </code></pre> <p>try this and let us know if its works or not.</p>