Last active
December 4, 2019 11:30
-
-
Save MrCoker/1809dce62e0205f0f02b739508312b5f to your computer and use it in GitHub Desktop.
jQuery function: Clone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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