if I were to click a button somewhere on a web page, I want specific text to appear in a specific form field : <p>So for one of my classes I need to create a simple Web-App. In the index jsp page, I wanted to be able to click a button somewhere else in the page, causing this to automatically fill in a form field with a value, that would then be sent to the server.</p>

<p>So for example, if I clicked some button, I want text to fill in a search bar I created at the top of the page that reads "hello world" and also send that value to the server. </p>

<p>I am thinking I should be using Jquery's click() function. But I am unsure how to proceed from there. </p>
