Hello.

I make a calculator windows. So in order for it to be beautiful and functional, I want to do this:

At the first stage, we choose the type of window (Windows, balconies, loggias) - this can all be done in the form of pictures, but this is not the point. And it is necessary that, depending on what is chosen, your calculator is loaded - one for windows, one for balconies and one loggia.

Tell me how to use the load function?

    1 answer 1

    $('.class-name').click(function() { $('.calculator').html('<div class="new-calculator">blablabla</div>'); }) 

    Instead blablabla code of another calculator. Or you can add the code of each calculator to a separate file and load it from there with the function - .load ('element.html');

    • If you use the load function, the page address will not change? Is it similar to include in php? - Batyabest
    • > if you use the load function, the page address will not change? yes> Is it similar to include in php? no - zb '