Last active
May 9, 2020 13:48
-
-
Save gavilanch/e786833ddd1d2663a61039673d3af8fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(document).on("click", "#counterClick", function (e) { | |
var container = $(this).closest(".counter-container").get()[0]; | |
var title = container.querySelector("h1"); | |
console.log("click JavaScript"); | |
$(this).html("Hola"); | |
title.innerHTML = "El botón ha sido clickeado jQuery!"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment