Saturday, February 13, 2016

Why should we use TabIndex

I used tabIndex for readonly textbox. Because we don't need to focus readonly field when we use "tab" for one textbox to another textbox. It's very simple.

@Html.TextBoxFor(model => model.USERPC, htmlAttributes: new { id = "textidUserpc", @class = "form-control", @readonly = "readonly", tabIndex = "-1" })




No comments:

Post a Comment