Hi. I am just getting my feet wet w/ JavaScript (so please if I missed following a guidline or broke a posting rule I apoligize in advance) and I need to do the following because of a reporting requirment I have w/ a Search Engine on my page/website.
I have two Input types in my Search Engine, one is a text area where the user can type in their question or keywords they are searching for. The other is a drop down for the user to select the specifc Category they want to search within. (See code below)
Because of a reporting requirment I have, I need to force the users to select the appropiate catagory before the query executes (so I can track accordingly in my reports). Currently the page loads with ("About Cars") selected or showing in the drop down. I want to force the user, even if this defaut ("About Cars") is the correct one to click the drop down and select the appropiate catagory so I know this is "indeed" the area they want to search in.
<form method="POST" action="http://www.domain/search.do">
Type in your question here: <input type="text" size="20" name="searchText" class="searchButton"> search in:
<select name="category" class="searchButton" style="font-size: 9pt">
<option value="/Topics/About Cars">About Cars</option>
<option value="/Topics/About Trucks">About Trucks</option>
<option value="/Topics/About Vans">About Vans</option>
<option value="/Topics/About ATV">About ATV</option>
<option value="/Topics/Other">Other</option>
</select>
<input type="submit" name="Submit" value="Find" class="searchButton" onsubmit="return formCheck(this);">
</form>
Thanks for any and all guidence anyone can give in this matter.![]()



Reply With Quote

Bookmarks