I am not sure why but no matter what I do,
<div class="input-group">
<div id="LocationInputContainer">@Html.TextBoxFor(m => m.Location, new { @class = "form-control", @tabindex = 109})</div>
<span class="input-group-btn">
<button type="button" tabindex = "110" id="GetLocBtn" class="btn btn-default tip-left" onclick="LocationNumberModal()">Get</button>
</span>
</div>
ignores my tabindex..
I even tried overriding it with jquery using:
$(document).ready(function () {
$('#Location').attr('tabindex', "109");
});
and the tabindex value just won't get added, something seems to be overrding it and I can't seem to find out what. I am using bootstrap with a grid for the for input placement, and the other input values work fine using TextBoxFor. I am stumped. This is in Firefox.
IE11 is another story, as tabbing will not even work correctly with IE11. It will skip one of the input boxes. Who knew tabbing would be so frustrating.
This is what FireFox inspector shows after page is ran:
<div id="LocationInputContainer"><input aria-required="true" class="form-control" data-val="true" data-val-required="A Location is required." id="Location" name="Location" value="" type="text"></div>