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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -