Displaying 1 result from an estimated 1 matches for "fieldpair".
2008 Jan 08
1
HOWTO: Add a new line, Remove new line?
...l needs
to work.
Anyone an Idea or suggestion how to fix this?
Many thanks!!
- J
BTW: I''m using Prototype 1.6
This is what I''ve got:
<strong>#My calculate.js file:</strong>
// Our main calculation function
function calculate() {
var total = 0;
// For each fieldpair that has a child with a checked input
// we get the sibling with a text input and add that value
// to the total.
$$(".fieldpair input:checked + input:text").each(function(elem) {
total += parseInt(elem.value);
});
// Show the result
$("result").update(...