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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -