I'm try to sort out a tabbing issu i have across our site. Basically
the from i am having is the order the tab index is applied to a page
using the script below. Currently the script adds a tabindex on all
the'a' tags first the inputs etc but that means if i have an input
field before some A tags the order of tabbing is messed up. Does any
one know of a solution around this?



 <script type="text/javascript">
     $("#MainContent > *").removeAttr("tabindex");
     $(document).ready(function() {
         // set tabs
     $('#MainContent > a,input,select,textarea').each(function(i) {
             $(this).attr('tabindex', i);
             $(this).after("<span>" + i + "</span>");

         })
     });
</script>

Reply via email to