JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type="text" name="test_name" value="hi!" />
</form>

JavaScript

// Demonstrate http://bugs.jquery.com/ticket/15199 without jQuery

var selector,
    selectors = {
        closed: "input[name=test_name]",
        open: "input[name=test_name"
    };

for ( label in selectors ) {
    selector = selectors[label];
    console.log(
        label + ": " + selector,
        document.querySelectorAll(selector)
    );
}