Is there any way to show ajax response in input field? thanks
Yes.
Using jQuery is as follows:
$.ajax({ url: '/test.php', success: function(data) { $('#your-input').val(data); } });
check this out: jQuery.ajax ()
$("id").val( $.ajax({ url: "script.php", global: false, type: "POST", data: ({id : this.getAttribute('id')}), dataType: "html", async:false, success: function(msg){ alert(msg); } } ).responseText);
Source: https://habr.com/ru/post/1334637/More articles:Can I use a wildcard and Link element inside a Compile element? - visual-studio-2008Download jQuery via Google CDN or Amazon CloudFront. What's better? - jquerySQL WHERE statement not working 100% - sqlEncode up to one byte extended ascii values - c #Listen to mouse clicks on the whole system (not on JFrame, etc.) - javaJQuery: hidden doesn't work in IE8 - jqueryTransparent jQuery UI Dialog - jqueryHow to transfer an arbitrary PDF file to PDF-1.2? - javaMouseLeftButtonDown not recognized ListBox? - c #Edittext keeps focus when keyboard is up and scroll list - androidAll Articles