JSFiddle - React, Tailwind, and code Playground JavaScript alert(jQuery('<input name="test[needle]">').is('[name~="needle"]'))