function aloop()
{
var count = 0;
var stars;
stars = newCost;
document.eMarkForm.dangerRange.value = document.eMarkForm.dangerRange.value + "\n" + newCost + " " ;
for (var count = 1; count <= stars; count = count + 1)
{
document.eMarkForm.dangerRange.value = document.eMarkForm.dangerRange.value + "*" ;
}
}
そのため、newCost という金額を計算しています。値の横に * を付けて、dangerRange テキスト フィールドに表示したいと考えています。ただし、newCost の量が 10 ごとに 1 * が表示されるようにします。どうすればこれを達成できますか?