Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab Order in ASP.NET MVC 3 Helpers

How can I use Tab Order property for following code:

<td>
    @Html.EditorFor(model => model.Cost)                
</td>

I tried this:

<td tabindex=1>
    @Html.EditorFor(model => model.Cost)                
</td>

any suggestions?

like image 638
Abdullah Saqib Avatar asked Jul 13 '11 12:07

Abdullah Saqib


1 Answers

You can also specify the same html attribute in the helper itself as follows.

@Html.TextBoxFor(model => model.Cost, new { tabindex = 1 })
like image 156
Joey Green Avatar answered Oct 04 '22 15:10

Joey Green