How to get all values from inputs with same name but different index via Jquery
<p>I had a task and now this is kind weird and I don't know, how to do that. So, I have non-specific number of inputs, with same name <code>car</code> but different indexes, like <code>sub</code>, <code>master</code> and <code>val</code>.</p>

<p>It looks like this:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type='text' name='bike[master]' value='some predefined value 1'&gt;
&lt;input type='text' name='bike[sub]' value='some predefined value 2'&gt;
&lt;input type='text' name='bike[val]' value='some predefined value 2.1'&gt;
&lt;input type='text' name='bike[sub]' value='some predefined value 3'&gt;
&lt;input type='text' name='bike[val]' value='some predefined value 3.1'&gt;</code></pre>
</div>
</div>
</p>

<p>I need, that jQuery, after user click on input, take all these values from inputs to one variable, if it will be possible, and send to server, which will put these data together and work with them.</p>

<p>Any idea? It is little bit complicated with indexes for me.</p>