how to get the max value from an input of having same class name using jquery
<p>In my code I need to get the max value of the hidden input field of class name "numberoffield" using jQuery. Anyone can help me.</p>

<pre><code>  $('.addTime1').click(function(){
   var $i = 0;
   $('&lt;div class="fields"&gt;&lt;input type="hidden" value="'+$i+'" id="hidden'+$i+'" 
   class="numberoffield" /&gt;&lt;/div&gt;').slideDown('slow').appendTo('.inputs');
   $i++;
 });
</code></pre>
