This topic is locked

Clear search box

11/14/2006 2:14:50 PM
PHPRunner General questions
M
mmponline author

Is there a way to clear the search box when clicking on it. It would then be easier to enter a new search criteria.
Thanks for any help.

Sergey Kornilov admin 11/14/2006

Stephan,
here it is:

<input type=text size=20 onkeydown="e = window.event;

if (e.keyCode != 13) return true;

e.cancel = true;

RunSearch();

return false;" onFocus="this.value='';"

id="ctlSearchFor" >

M
mmponline author 11/15/2006

This works fine thanks.

Is there away to add some code after the search table to say: This is the search result for "New Products"

Something similar to the "x" records of "xx" returned.
If I leave the default search box, it shows it, but obviously it's a input box.