title: Select input field with name as array field
body: <p>I wanted to select the text field based on condition, for example:</p>
  
  <pre><code>if only text field name = sname[] than only put value in it.
  </code></pre>
  
  <p>For this I used</p>
  
  <pre><code>&lt;input type="text" name="sname[]" /&gt;
  
  where name = sname;
  
  //For each name type field in extra add contact module if that i visible.
      $('input[name=' + name + '[]]').each(function() { 
  
  });
  </code></pre>
  
  <p>But I'm not able to get inside of it. Please suggest how to get into the selection.</p>