title: How to get elements of similar name? jQuery
body: <pre><code>&lt;input name="Indian_Karnataka_Bangalore" value="Bangalore" /&gt;
  &lt;input name="Indian_Andhra_Hyderabad" value="Hyderabad" /&gt;
  &lt;input name="Indian_Kerala_Trivandrum" value="Trivandrum" /&gt;
  &lt;input name="Indian_Maharashtra_Mumbai" value="Mumbai" /&gt;
  </code></pre>
  
  <p>At a given time, only one input element will be present in the DOM. How will I know the name of the specific input element name? I don't want to depend on values as it might change.
  Using jQuery.</p>
  
  <p>The INDIAN term will be static in every input element.</p>
  
  <p>Actually i am trying to validate the input elements. DOM will have all the elements but at a given time only one element will be active and that element should have some value in it.</p>