JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<input type="text" tabindex="1"/> 
<input type="text" tabindex="2"/>
<button type="button">Click Me!</button>

JavaScript

// #4510

// FF3.5=2; IE8=2
alert($(":input[tabindex]").length);

// FF3.5=0,undefined,null; IE8=0,undefined,null
alert(
    $("button").attr("tabindex")+","+
    $("button")[0].tabindex+","+
    $("button")[0].getAttribute("tabindex")
);