Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need some help running two jquery.calculation on the same page, in my example only the 2nd table is working, I have added the script 2x and have renamed all the elements but it's not working.

When I remove the 2nd script the 1st one is working.
When I add the 2nd script the first one stops.

I understand that somehow these 2 scripts need to be combine but I really do not know how.

Thank you.

Here is an example:
http://jsfiddle.net/Z2zyz
Posted
Comments
VICK 11-Sep-13 1:25am    
Ryan Dev has posted solution which will work for you.. as i have seen your fiddle and analysed it.. I would suggest you to implement Ryan's Solution and to use the same function twice.. You can pass parameter in it....

1 solution

You need to combine your document.onready events. You have 2 document.onready events so the browser will choose which one it wants to run.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900