View Single Post
  #2 (permalink)  
Old Aug 31st, 2006, 10:46
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: need some help with my search box please ...

Try this:

1. Initially have the action attribute empty - action=''.

2. Set up an 'onchange' function for your select box, e.g., 'onchange = gosearch();'.

3. Within this function do:
.... check for the value selected
.... set action accordingly using - document.form.action = 'actionrequired';
.... submit using - document.form.submit();
Reply With Quote