HTML Code:
<html> <head> <script src="jquery.js" type="text/javascript"></script> </head> <body> <input type="text" id="player_search" placeholder="enter playername"> </body> <script> $('#player_search').keyup(function() { var str = $(this).val(); var url = 'http://www.futhead.com/14/players/search/quick/?term='; $.ajax({ type: 'GET', url: url + str, dataType: 'json', success: function(data) { alert("here"); } }); }); </script> </html>