Function used to make a text box a searchable input for a given select box.

Syntax

JSV_searchSelectBox(textObj, selectObj)

Prototype

n/a

Returns

n/a

Parameters

The searchSelectBox function uses the following arguments.

Argument Description
textObj The TEXT object. The "search" text box.
selectObj The SELECT object. The select box to search against.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

<form action="noaction.htm"
      name="SearchForm"
      id="SearchForm"
      onSubmit="return false;">
<input type="text"
       name="edSeachInput"
       id="edSeachInput"
       onKeyUp="JSV_searchSelectBox(this, this.form.FoodTypes);">
<br>
<select name="FoodTypes" id="FoodTypes" size="8">
<option value="abc">Apples</option>

<option value="abc">Banana</option>

<option value="abc">Cherries</option>
<option value="abc">Cheese Cake</option>
<option value="abc">Chili</option>
<option value="abc">Chili Cheese Fries</option>

<option value="abc">French Fries</option>
<option value="abc">Fried Chicken</option>

<option value="abc">Hamburger</option>
<option value="abc">Hot Dog</option>

<option value="abc">Oranges</option>

<option value="abc">Pineapple Upside Down Cake</option>
<option value="abc">Philly Cheese Steak</option>
<option value="abc">Popcorn</option>

<option value="abc">Shrimp Etoufee</option>
<option value="abc">Shrimp Po-Boy</option>
</select>
</form>

produce