Forum Moderators: open
I need a menu like this showing on the front page:
- Brakes
- Car customising
- Decals & Aesthetics
I tried making the text act as a submitter, and it worked, this is what I did:
<a href="javascript:document.FormName.submit();">Brakes</a>
Now, I need to be able to assign a NAME and a VALUE to this text so that by clicking it, it will automatically submit the form and feed it the search keyword at the same time.
<a href="javascript:document.FormName.action+='?search=Brakes';document.FormName.submit();">Brakes</a> Or, a little neater, to use a hidden field to store your value:
<a href="javascript:document.getElementById('search').value='Brakes';document.FormName.submit();">Brakes</a>
<input type="hidden" name="search" id="search">