You can use .clone()
, like this:
var button_save = $("<button />");
$("#compteurs").append(button_save);
[...]
$("#compteurs").append(button_save.clone());
More Related Contents:
- This doesn’t seem right? Javascript isn’t working
- How to check first 200 chekboxes , then next 200 and so on?
- How can I access the contents of an iframe with JavaScript/jQuery?
- Prevent scrolling of parent element when inner element scroll position reaches top/bottom?
- Refresh/reload the content in Div using jquery/ajax
- How to delete a localStorage item when the browser window/tab is closed?
- Difference between “change” and “input” event for an `input` element
- How to check if iframe is loaded or it has a content?
- Get list of data-* attributes using javascript / jQuery
- Convert simple array into two-dimensional array (matrix)
- Jquery Mobile – $.mobile.changepage not loading external .JS files
- Create table with jQuery – append
- Benefits vs. Pitfalls of hosting jQuery locally [closed]
- How to handle floats and decimal separators with html5 input type number
- Getting Chrome to prompt to save password when using AJAX to login
- How to check/uncheck radio button on click?
- Difference in JSON objects using Javascript/JQuery
- jQuery select element by XPath
- How can I make window.showmodaldialog work in chrome 37?
- How do i disable a submit button when checkbox is uncheck?
- Preview images before upload
- jQuery equivalent of getting the context of a Canvas
- jQuery/JavaScript “this” pointer confusion
- HTML5 Video Dimensions
- jQuery remove options from select
- console.log(result) prints [object Object]. How do I get result.name? [duplicate]
- Trying to load local JSON file to show data in a html page using JQuery
- Include html in another html file [duplicate]
- How to select empty inputs (value=””) using jQuery
- jQuery addClass onClick