I\'m fairly new to JQuery and MVC 2 which makes this a bit harder, I\'ve always used WebForms before.
I\'m using the NerdDinner example as setup (I\'ve switched Dinner
Ignore the Ajax
helpers, they're for ASP.NET AJAX scripting.
Change your link to:
<%= Html.ActionLink("Details", "Details", new { id = item.id})%>
And your jQuery to:
$('tr').click(function() {
var url = jQuery(this).find('a').attr('href');
$("#details").load(url)
});
page1.asp
<div class="holder">
<div>1</div>
<div class="test">2</div>
</div>
$('.holder').load('page1.asp .test');// returns =>> 2
// .test grabs any element that has a .test and pushes it into the holder
so page would look like this...
<div class="holder">
<div class="test">2</div>
</div>