hi every one
i get a jquery for the Auto completion textbox and following query only pass null values to the controller .if you could assist me on this matter that would be a great help!!!
input id="searchTerm" name="searchTerm1" type="text" />
<script type="text/javascript">
$(function () {
$("#searchTerm").autocomplete({
source: "/Home/AutocompleteSuggestions",
minLength: 1,
select: function (event, ol) {
if (ol.item) {
$("#searchTerm").val(ol.item.value);
$("form1").submit();
}
}
});
});
</script>
public JsonResult AutocompleteSuggestions(string ss)
{
var suggestions = selectEmployees.getEmployeeSuggestedNames(ss);
return Json(suggestions, JsonRequestBehavior.AllowGet);
}