How to do replacement of text and code calculation calculator clicking on a particular tab?

In General, there is a website. Home consists of 3 parts. (All three parts are initially in the page code). When loading one part with a certain content. Clicking on another tab and loaded another. Done using JS.

Each tab is like another page. That is, when you click on another tab content is replaced by another.

On the page there is a simple calculator in JS. It is loaded when you click on one of the tabs. That is, it is only on one tab.

To do so, this calculator is loaded for each tab, but with their headers and their calculation formula. That is, the layout of the calculator remains the same. Even the code calculator can be the same, but only to put other values for a specific tab.

Task: to Do replacement of text and code calculation calculator clicking on a particular tab. For each tab the values of the calculator and its header.

How to implement it? And give an example of some, please.
September 19th 19 at 00:24
1 answer
September 19th 19 at 00:26
Solution

Find more questions by tags JavaScriptHTMLCSSjQueryLayout