1

誰か助けてくれませんか?エンターキーを押すだけでこれ(以下)をトリガーしようとしています:

<div id="create_new" tabindex="2">
 @Ajax.ActionLink("Create New",
    "create_new", new AjaxOptions { 
    UpdateTargetId="accordion",
    InsertionMode= InsertionMode.Replace,
    HttpMethod = "GET"
    })
 </div>
4

1 に答える 1

0

これは私のために働く:

<div id="create_new">
@Ajax.ActionLink("Create New",
"create_new", "controller_name", null, new AjaxOptions
{
    UpdateTargetId = "accordion",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "GET"
}, new { tabindex = 2}
)
</div>

div の代わりに、リンクに tabindex を含めるだけです。

于 2013-09-11T16:19:07.817 に答える