values containing square brackets in queries for document.querySelectorAll() have to be escaped in order to work.
(This is because querySelectorAll() / jQuery supports attribute selectors such as '[name=foo]', a query for the ID 'foo[bar]' would become document.querySelectorAll('#foo[bar]') which means: "get all elements with the ID 'foo' and the attribute 'bar'.)
values containing square brackets in queries for
document.querySelectorAll()
have to be escaped in order to work. (This is because querySelectorAll() / jQuery supports attribute selectors such as '[name=foo]', a query for the ID 'foo[bar]' would becomedocument.querySelectorAll('#foo[bar]')
which means: "get all elements with the ID 'foo' and the attribute 'bar'.)