Developing an ASP.NET MVC 3 application (my first) and running into some trouble with jQuery, as I've never used it before. I'm trying to open up details for a particular search result in a modal dialog.
relevant razor code:
@foreach (var item in Model.claims)
    {
        <tr>
            <td>@Html.ActionLink(item.CLAIMMASTID.Substring(Math.Max(0,item.CLAIMMASTID.Length-1)), "ClaimDetail", new {@id=item.CLAIMMASTID}, new {@class="ClaimsDetail"})</td>
        </tr>
    }
And the controller has that set up to display a partial view:
public ActionResult ClaimDetail()
    {
        return PartialView("_ClaimDetail");
    }
All good so far, yes? That's what I think. So my jQuery script looks as such, and it's where I think the problem lies:
$(function () {
    $('#ClaimsDialog').dialog({
        autoOpen: false,
        width: 800,
        resizable: true,
        modal: true
    });
    $('.ClaimsDetail').live("click", function () {
        var target = $(this).attr('href');
        $.get(target, function (result) {
            ('#ClaimsDialog').html(result);
            ('#ClaimsDialog').dialog({
            });
        });
        return false;
    });
 
    