title: jquery wildcard for complex input name with array notation
body: <p>I have complex input elements of type <code>text</code> with names like <code>product[1][combinations][x][price]</code>.  There are many of this element, differing in name only by the value after <code>[combinations]</code> and after <code>[x]</code>.</p>
  
  <p>For example:</p>
  
  <pre><code>product[1][price]
  product[1][combinations][x][price]
  product[1][combinations][xx][price]
  product[1][combinations][xxx][price]
  product[1][combinations][xxxx][price]
  
  product[1][sale_price]
  product[1][combinations][x][sale_price]
  product[1][combinations][xx][sale_price]
  product[1][combinations][xxx][sale_price]
  product[1][combinations][xxxx][sale_price]
  
  product[2][price]
  product[2][combinations][a][price]
  product[2][combinations][aa][price]
  product[2][combinations][aaa][price]
  product[2][combinations][aaaa][price]
  
  product[2][sale_price]
  product[2][combinations][a][sale_price]
  product[2][combinations][aa][sale_price]
  product[2][combinations][aaa][sale_price]
  product[2][combinations][aaaa][sale_price]
  </code></pre>
  
  <p>the above values <code>x</code>, <code>xx</code>, <code>xxx</code>, <code>xxxx</code> and <code>a</code>, <code>aa</code>, <code>aaa</code>, <code>aaaa</code> represent unique values per <code>product[id]</code>.  the first definition in each group(<code>product[2][sale_price]</code> for example) represents the parent or owner product who's value i will be batch updating to its children(combinations).</p>
  
  <p>I would like to find groups of these elements based on what the type of information is being stored, for example <code>sale_price</code> and then change its value.  I don't need to consider the unique value, <code>[x]</code> so i hoped i could use a wildcard.</p>
  
  <p>I hoped something like this would solve the problem(example):</p>
  
  <pre><code>$("input[name='product[1][combinations][*][price]'][type='text']").val(0);
  </code></pre>
  
  <p>however the <code>*</code> isn't really a wildcard i guess, so i can't use it like that.</p>
  
  <p>I realize i could do something like this, however this will assign <code>0</code> to all inputs instead of just <code>sale_price</code>:</p>
  
  <pre><code>$("input[name^='product[1][combinations]'][type='text']").val(0);
  </code></pre>
  
  <p>How can i replace this(<code>$("input[name='product[1][combinations][*][price]'][type='text']").val(0);</code>) selector with an appropriate wild card?  I'd like to keep the name array values in the same order if possible</p>