JSFiddle - React, Tailwind, and code Playground
by rwaldron
HTML
<input name="foo[bar]" type="text" />
JavaScript
console.log($('[name="foo\\[bar\\]"]').length);
by rwaldron
<input name="foo[bar]" type="text" />
console.log($('[name="foo\\[bar\\]"]').length);