altro giro altra corsa:
codice:
$("#idTotal").click(
				function (){
					// get the sum of the elements
					var sum = $(".textSumm").sum();
					if (sum>=2){
						var sum2 = (((($(".textSumm").sum())/10)-0.1)+1).toFixed(2);
						alert(sum2);	
						$("#totalSum").text("$" + sum2.toString());
					}
                                        else{
					// update the total
					//$("#totalSum").text("$" + sum2);
					}
				}
			);
Solo non capisco come mai, l'alert(sum2); mi restituisce il conteggio esatto, ma non lo riesco a scrivere dentro l'input #totalSum.Dove sbaglio?
Grazie mille...