اینو تو صفحه ایندکستون بذارید
<script language="javascript">
$(document).ready(function(){
$('#isearchtxt').keyup(function(e) {
if(e.keyCode == 13) {
$("#sub_cont").load("ajax_search.php?val=" + $("#isearchtxt").val() );
}
});
$(".isearchBtn").click(function(){
$("#sub_cont").load("ajax_search.php?val=" + $("#isearchtxt").val() );
});
});
</script>
<br >
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="667" align="right" valign="middle" scope="col">
<input type="button" name="isearchBtn" id="isearchBtn" value="جستجو" style="height:26px; width:75px;" />
<input type="text" value="" maxlength="100" name="isearchtxt" id="isearchtxt" style="width:225px; text-align:right">
</td>
<td width="133" align="left" valign="middle" scope="col"><div dir="rtl" style="width:120px; float:right;">جستجو برای : </div>
</td>
</tr>
<tr>
<td height="35" colspan="2" align="center" valign="middle"> </td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle">
<div id="sub_cont">
</div>
</td>
</tr>
</table>