Q:

Live Search with Golang on HTML Page

I'd like to run a search and display its results as soon as the text of an <input> changes. 
How could the program get the value from the <input> when it changes? 
<input type="text" name="search" id="search">
<section id="results"></section>

A:

Post you value to Golang with ajax. 
$("input").keyup(function(){
txt=$("input").val();
$.post("url",{suggest:txt},function(result){
     $("#results").html(result);
     });
   });

