title: Get maximum value from many textboxes using jQuery
body: <p>I am having many textboxes, every textbox has some value in it. I want to get the maximum value from all of the textboxes. I don't know which jQuery I should apply in this. Please take a look at my try below:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){
    $("p").click(function(){
      $('input[name="result"]').val(Math.max('input[name^="tt"]'));
    });
  });
  
  //it should give 76.4</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input name='tt1' value='12.2'&gt;&lt;br&gt;
  &lt;input name='tt1' value='33.2'&gt;&lt;br&gt;
  &lt;input name='tt1' value='24.2'&gt;&lt;br&gt;
  &lt;input name='tt1' value='76.4'&gt;&lt;br&gt;
  &lt;input name='tt1' value='34.3'&gt;&lt;br&gt;&lt;br&gt;
  &lt;input name='result'&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>