jQuery selector for inputs with square brackets in the name attribute

Per the jQuery documentation, try this:

$('input[inputName\\[\\]=someValue]')

[EDIT]
However, I’m not sure that’s the right syntax for your selector. You probably want:

$('input[name="inputName[]"][value="someValue"]')

Leave a Comment