I'm pretty new to both javascript and php and am having trouble getting something done.
I have an array form variable in PHP:
<input type='hidden' id='results[]' name='results[]' value=''></input>
I want to put values in it through javascript and don't know how.
I'm trying something like the following:
$("#results[index]").attr("value", "string");
What am I doing wrong?