is there any way to display ajax response into input field? thanks
Yes.
Using jQuery this looks like:
$.ajax({ url: '/test.php', success: function(data) { $('#your-input').val(data); } });