Example. Set the value of the field: $("button").click(function(){ $("input:text").val("Glenn Quagmire"); });. Try it yourself » ...
www.w3schools.com