Skip to content

Instantly share code, notes, and snippets.

@MrCoker
Last active December 4, 2019 11:30
Show Gist options
  • Save MrCoker/1809dce62e0205f0f02b739508312b5f to your computer and use it in GitHub Desktop.
Save MrCoker/1809dce62e0205f0f02b739508312b5f to your computer and use it in GitHub Desktop.
jQuery function: Clone
jQuery: Clone an existing jQuery function
```
var staticButton = $(".sticky-footer--wrapper button").clone().addClass("payment-button");
$(".cart-info.delivery-payment-sidebar").append(staticButton);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment