I have a list of five numbers echoed by php as demonstrated below:-
<div id="items">
<span class="number" id="one"><?php echo $one; //result = 1?> </span>
<span class="number" id="two"><?php echo $two; //result = 2?> </span>
<span class="number" id="three"><?php echo $three; //result = 3?> </span>
<span class="number" id="four"><?php echo $four; //result = 4?> </span>
<span class="number" id="five"><?php echo $five; //result = 5?> </span>
<div id="result"></div>
</div>
I would like to have a result of the best three scores displayed in the <div id="result"></div>
div
For instance, in my question i would expect my result to be 12
I there a simple way of doing this. probably with javascript or even PHP?