ho risoltose serve a qualcuno:
codice:var tot = 0; for (i = 0; i < 10; i++) { var singleValues = $("#mbody_GwNuovaPartitaB_txtGolGwNuovaPartitaB_" + i).val(); tot = parseInt(tot) + parseInt(singleValues); } $("#mbody_lbRisB").text(tot);
ho risoltose serve a qualcuno:
codice:var tot = 0; for (i = 0; i < 10; i++) { var singleValues = $("#mbody_GwNuovaPartitaB_txtGolGwNuovaPartitaB_" + i).val(); tot = parseInt(tot) + parseInt(singleValues); } $("#mbody_lbRisB").text(tot);