$("#textInput").val() // To get value of element textInput
$("button").click(function(){ $("input:text").val("Glenn Quagmire"); })