title: Replace html array notation var with loop value jQuery
body: <p>I'm trying to replace the [2] in the name values of the hidden fields with a new value within a loop. The 2 could be any number and so I won't necessarily know it when I'm looping. What would be the best course of action in replacing it?</p>
  
  <pre><code>&lt;input type="hidden" class="pid" name="t[2][p][149][id]" value="ID"&gt;
  &lt;input type="hidden" class="pane" name="t[2][p][149][name]" value="NAME"&gt;
  </code></pre>