Hi
I'm very new to both of these so please forgive my basic question.
I have an index page like:
<div id="SearchBar">
<%= Html.Encode("Search by Site Name: ") + Html.TextBox("SearchTextBox") %>
<input type="submit" value="Search" id="jQuerySubmit" />
</div>
<div id="SiteList">
<% Html.RenderPartial("SiteIndexSearchResults", Model); %>
</div>
This all works fine.
I want to reload this partial based on what the user types in 'SearchTextBox' (I've hardcoded this in controller for now - for test purposes)
I can't get the partial to reload using:
$(document).ready(function() {
$("#jQuerySubmit").click(function() {
$("#SiteList").load("/Site/IndexSearch/");
});
});
It goes into the controller and does return the new view based on IsAjaxResult being true but does not refresh the page.
Thanks in advance.
Davy