I have a variable with this value:
var total = 10;
And two input:
<input type="text" name="foto-1">
<input type="text" name="foto-2">
I need the client to be hindered by a value in which the sum of each input is greater than the total of 10 , DYNAMICALLY .