1F (One File) Scripts

Free PHP, JavaScript scripts in single file

1F Suggest Javascript Dropdown

1F Suggest is easy to use javascript dropdown script. The only think you need to do is include 1f_suggest.js Javascript file, create array with elements you want to suggest for dropdown and attach array to textbox.

Works with: Internet Explorer and Firefox.
Keywords: Auto-Suggest | Auto-Complete | Free Suggest | Free Script

1F Suggest Demo

Enter fruit name:
Any veggie:

1F Suggest - Simple Example (included in zip)
1F Suggest - State and City Example (included in zip)

Click here to download script

To use 1F Suggest:

<script src="1f_suggest.js"></script>

<form ... autocomplete="off">
<input type="text" name="t_fruit" ID="t_fruit">
</form>

<script language="JavaScript">
// Init Array, List can be long
fruit_array = new Array("Apple", "Lemon", "Pear", "Peach", "Plum", "Tamarillo");

// Attach sugest Array to textbox
auto_suggest_create("t_fruit", fruit_array);
</script>