impossible clone calculation

112
January 01, 2020, at 2:20 PM

**Hello,

I'm using google translation because I'm French

I have a code that works to do calculations with the result that appears in a div.

I want to clone it and that the new code present in the new container works

I tried several methods but without result. Thank you for your help**

function Clone(clonebutton) {
var row = $(clonebutton).parent(),
original = $('#divRow0'), // DIV SOUS CONTAINER
clone = $(original).clone(true, true);

clone.find('.example-one-input').val('') // CLEAR VALUE. 
clone.find('.example-one-value').text('0.0e'); // CLEAR VALUE. 
$('#container').append(clone);
}

$(".btnremove").click(function(e) {
 $(this).closest('.clonerow').remove();     
});

$(".btnclone").click(function(e) {
$(".btnremove:last").css("display", "block");
});

here is the link to test it :

https://jsfiddle.net/z7un0xp3/

READ ALSO
How to make roundSlider and Jquery-UI slider responsive and work with boostrap

How to make roundSlider and Jquery-UI slider responsive and work with boostrap

I am trying to put together a Boostrap 4 card that has thermostat control user interfaceBelow are parts of my code (full code is here: https://jsfiddle

106
Animation in JavaScript/jQuery with arrays

Animation in JavaScript/jQuery with arrays

I'm trying to display an animation for every object in an arrayI have some difficulties to "connect" all codes and scripts

111
Adding Link to Quill editor causes text after link to overflow

Adding Link to Quill editor causes text after link to overflow

Adding a link using the add link tool from the tooloptions allows me to add a link but after saving the data from the editor and refreshing the page the text after the link overflows the texteditor

98
How to center elements on the last row in CSS Grid?

How to center elements on the last row in CSS Grid?

I am using CSS grid to layout some items like this

77