title: jquery how to make a While that get all element start with String and get last 2 integer
body: <p>Hello friends I have a problem, I would like to help to solve.
  I have an indefinite amount of Element in the following format:</p>
  
  <pre><code>&lt;input type="text" id="p_fase_1" name="p_fase_1" value="1" required&gt;
  &lt;input type="text" id="p_fase_2" name="p_fase_2" value="1" required&gt;
  </code></pre>
  
  <p>the difference in each element is the ID and the name and ending with different numbers.</p>
  
  <p>I require to get the highest number of all element that start with this id String in the ID and the value it has.</p>
  
  <pre><code>p_fase_"this number" value="this value"
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>[id^="p_fase_"]
  </code></pre>
  
  <p>like taking a while with these element and save the greatest values in a variable</p>