By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,434 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

Using Javascript in Fabrik as part of Joomla

P: 2
I have a table which users add data into 4 fields then 5th field needs to add all these up as a sum i have done it one way but it adds them as follows

1+12=112

$('table_name___total').value = $('table_name___rd1').getValue() + $('table_name___rd2').getValue() + $('table_name___rd3').getValue() + $('table_name___rd4').getValue();
Nov 10 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
You need to use parseInt to convert the string into an integer.
Nov 10 '08 #2

P: 2
You need to use parseInt to convert the string into an integer.

Sorry for sounding dumb which i am how do i do that
Nov 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.