JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.5rc1.js"></script>
<input type='text' name='foo[bar]'>
<input type='button' name='baz' value="baz">
JavaScript
$(function() {
$(document.body).append( jQuery.fn.jquery + ': ' + $(':input[name$=hoge[bar]]').length );
});