0
The question title function only works by returning an entry of type=range as a number in the browser. Already on Smarthphone only returns Nan, probably the jquery.1.9.1.js or jquery-mobile.1.4.5.js is not compatible, some suggestion?
JS Code
<script>
validar = function() {
var soma = 0;
$('input[type=number]').each(function() { //number devido ao código gerado pelo jquery mobile.
soma += parseInt($(this).val());
});
console.log(soma);
if (soma < 45) {
location.href = "sua_pagina";
}
else{
location.href="sua_pagina"
}
}
</script>
It all worked out! The code works perfectly! I thank you very much friend!!
– Marcílio Aguiar
You’re welcome @Marcílioaguiar
– Miguel