/ Published in: JavaScript
This will reset the tabindex of all input fields on a form after page load
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function(){ var tabindex = 1; $('input,select').each(function() { if (this.type != "hidden") { var $input = $(this); $input.attr("tabindex", tabindex); tabindex++; } }); });