javascript - Form without value can't receive zero value -
i'm have form more or less 5 inputs, in determinate moment them go stay without value , want descover smaller value between them, has 1 or more inputs empty returns 0 value , indicate smaller number.
with inputs i'm forming string:
document.queryselectorall("input");
to received values of input, has input empty location of strings received 0 , math.min()
calc value smaller.
there way ignorate empty input , don't put @ string?
Comments
Post a Comment