Suppose I have a form with input element naming scheme that is a multidimensional array. Such as:
<form>
<input type="number" name="foo[123][456][789]" />
</form>
Is it possible to use jQuery (CSS selectors) to select all inputs where the name starts with foo, and has a specific value in the second array selector?
For example, the following is a possible valid selection (second array selector is always 456):
<input type="number" name="foo[123][456][1]" />
<input type="number" name="foo[422][456][2]" />
<input type="number" name="foo[443][456][3]" />
<input type="number" name="foo[211][456][4]" />