I have a <form> with this input...
Term ID: <input type="text" name="data_array[0][term_id]" size="5" value="' . $highest_term_id . '">
where $highest_term_id is set by PHP.
I'm trying to use jquery to increment the "data_array[0]" part by...
$("input[data_array[" + index + "][term_id]").val((index + 1));
but I get this error:
Error: Syntax error, unrecognized expression: input[data_array[undefined][term_id]"
A bit higher in the script I have var index = 0;;
Any ideas why this is failing?