I am thinking of trying to make (read:copy/paste half the internet untill it works) a search option which works like this:

on a page there are multiple dropdownmenu's in which people choose brand, make, type etc of products. I would like to take the input from these boxes and put them in an (invisible if possible) search box.

So if people choose for example "Nike", "sport shoe" & "2008", the search box will be filled with "Nike sport shoe 2009"

Is this possible? I'm fairly new at JavaScript, so if this is a real dumb question... Sorry!

Thanks for any response!

jmrker

09-12-2008, 06:17 PM

Is this what you have in mind? :)

<html>
<head>
<title>Search Selections</title>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay M. Rumsey, OD | http://www.nova.edu/~rumsey */

I changed it just a bit, because i didnīt need (I think) the " onclick="NewList('SBox1','SBox2')" , because that made the menu's change, which I did not need. I deleted that and now it does what i wanted!
I first have to create the page which it will be on, but when it's totally done I'll post the 'final' code which I used.

Thanks again!

DMR

jmrker

09-13-2008, 01:41 AM

What the 'NewList' function does is repeat all the values in the preceding selectbox except for the particular one previously chosen. This eliminates the possibility of duplicate entries in the search function that you said you wanted to create. I'll look forward to your final attempt.