Is there a way to use a function similar to a html forms 'get' function to append a url based on the text of a textbox when a button is pressed without using a form?
<form method="get" action="https://www.google.co.uk/">
<input type="text" name="q"/>
<input type="submit" value="Search">
</form>
I don't think I can use a normal form for this because I want to have 1 textbox but two functions and two buttons (Google Search and Bing Search). If I am wrong please feel free to tell me how to add two functions to one form!
You could use regular buttons instead of submit buttons, and wire them to change the form's action before submitting: