Setting maximum value for a text box in PHP
<p>How to set a max value for a text box in JavaScript?</p>

<p>For example, the value must be within 100. No greater value must be entered.</p>

<p>My task, I am using two text boxes where I am inserting marks.</p>

<p>The first text box my marks will be out of 80.</p>

<p>The second will be out of 20.</p>

<p>I am calculating the total of the 1st and 2nd mark and 
the result will be in another text box. The mark for the third text box will be 100.</p>

<p>Now, my query is: how to set the maximum value for the values for mark 1 mark 2 and total as 80,20 and 100, respectively.</p>

<pre><code>         mark1/80      mark2/20       total/100
qqq        80              20             100
</code></pre>
