Return to Snippet

Revision: 62132
at February 4, 2013 08:37 by bitsculptor


Initial Code
$(function(){
    var tabindex = 1;
    $('input,select').each(function() {
        if (this.type != "hidden") {
            var $input = $(this);
            $input.attr("tabindex", tabindex);
            tabindex++;
        }
    });
});

Initial URL
http://greatwebguy.com/programming/dom/setting-your-tabindex-on-your-html-forms-automatically-with-jquery/

Initial Description
This will reset the tabindex of all input fields on a form after page load

Initial Title
Reset tabindex on pageload

Initial Tags
javascript, jquery

Initial Language
JavaScript