I have a form like this
<html>
<body>
<form action='' name='myform' method='POST'>
<input type='text' name='cars'>
<button action='submit'>Search Cars</button>
</body>
</html>
What I want to do is change the form action to be something like action='http://www.mysite.com/<cars_value>.html'> based on whatever is filled into the input field (which is populated by autocomplete).
Is there an easy way of doing this? I can do it with a <select> easily enough but the customer wants an input field instead!
You can do this, you will need to add ids to items. One thing you might want to do is validate the users input.
HTML
jQuery
EDIT:
It is best to be javascript at bottom of page;
FULL