var bookRate = new Array('The Right to differ', 'Issues In Contemporary Documentary', 'Writing, Directing and Producing', 'Lee Kuan Yew My Lifelong Challenge');
var selection = document.rate.checkbox;
var sum = 0.00 ;
for (i=0; i<selection.length; i++)
if (selection[i].checked == true)
alert('Book Name : ' + bookRate[i] + ' \n Price of the book : ' + selection[i].value)
alert('Total Purchased Books : ' + selection[i].value);
내가 지금 가지고있는 것.javascript에서 두 개 이상의 확인란 값을 합산하는 방법은 무엇입니까?
두 개의 체크 박스가 선택되어 있으면 합계하는 법을 알아야합니까?
이 기능은 선택한 항목 만 표시합니다.
입니다. –