Javascript in element

Status
Not open for further replies.

sergio

New Member
Hi all,
how specified in the thread:
http://fabrikar.com/forums/showthread.php?t=7660&highlight=javascript+element
I've make all passagges; created the function in 1.js "$('table___element).value=($('table___element2).value + $('table___element3).value) 1file copied in to js folder and I call this fuction in "onchange" event of the element.
The element readonly that should contain the sum, it report tha value inserted in the first element and the [HtmlInputElement] messagge... ???
(i.e. 3[HtmlInputElement])

What have I wrong?

tnxxxxxx
 
Can you point me at the page?

Also, did you literally use 'table___element', or your real table and element names?

-- hugh
 
Try this:

Code:
function calc() {
    $('a_tabella1___campo3').value = parseInt($('a_tabella1___campo1').getValue()) + parseInt($('a_tabella1___campo2').getValue());
}
-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top