The question title function only works by returning a type = range entry as number in the browser. While in Smarthphone only NaN returns, probably jquery.1.9.1.js or jquery-mobile.1.4.5.js is not supported, any suggestions?
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>