JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<input name="foo[bar]" type="text" />

JavaScript

console.log($('[name="foo\\[bar\\]"]').length);