Tor
|
Posted: 11/06/2003, 5:04 PM |
|
Hi
I have a search form with a listbox. Is it possible to delete the search button, and start the search automatically when a new value is selected in the listbox?
Regards
Tor
|
|
|
Hamilton
|
Posted: 11/06/2003, 7:23 PM |
|
<SCRIPT LANGUAGE = "JavaScript">
function goPage(form)
{
selID = form.selID.value;
page = "default.asp?id=" + selID;
window.location=page
}
</SCRIPT>
'Example: <select name="selID" onChange="goPage(this.form); return true">
On your input box, add onChange="goPage(this.form); return true"
Change the name of the name of the select box (form.selID.value) in the javascript to the name of your input box.
Hope this helps,
Hamilton
www.dataobjx.net
|
|
|
|