JSFiddle - React, Tailwind, and code Playground HTML <input name="files[]" /> JavaScript alert($('body').find('input[name="files\\[\\]"]').length);