View Single Post
  #12  
Old December 17th, 2013, 10:58 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

here is the code for simple search.

<script type="text/javascript">
<!--
/*
* NOTE: This JS code would be much better off
* existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>

<div class="store_search_form">
[search.form]
[search.word onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
[search.submit title='Go']
<label><input type="checkbox" name="chkSaleprice" value="1-" />On Sale</label>
[/search.form]
</div>