title: How to find all input elements with a given prefix within a div?
body: <p>I have a div with id ="propertiesDiv". It has certain input elements. All of them are text fields. Some of them have names like propertyName1, propertyName2 etc. I need to get all such inputs with names starting from "propertyName".</p>
  
  <p>Below is code I have written so far but it gets me all inputs within that div.</p>
  
  <pre><code>$('#propertiesDiv').find('input').each(function(index, element){
      var name = element.name;
  });
  </code></pre>
  
  <p>Please help</p>