Setting the target of an anchor tag
Hello all,
I have an anchor tag:
<a class="search-link" href="/Home/DoSomething?param1=haha&param2=4">SearchLink</a>
and a div:
<div id="results"></div>
Can you please show me the jQuery code that sets the target of the link to the div. I mean when the link is clicked by the user, I want the results coming from the server to populate the div asynchronously as opposed to causing a page refresh.
Thanks!