jQuery, loop over elements with only partial name or id known
<p>I have a form with multiple inputs generated by javascript.  The names and IDs are generated by javascript.</p>

<p>I need to loop over the elements to set their values, but the names and IDs of each element include their own unique integer that I don't know to easily get access to.</p>

<p>An example element name is:</p>

<pre><code>test[result_fields_attributes][1468515178049][name]
</code></pre>

<p>An example element id is:</p>

<pre><code>test_result_fields_attributes_1468515178049_name
</code></pre>

<p>Does anyone know a way to loop over multiple elements like those when I don't know what that long integer is for each element?</p>