Created
October 8, 2019 18:12
-
-
Save matheusmurta/7fc21a1d3ff33062797a5f0ab0ae10a0 to your computer and use it in GitHub Desktop.
jQuery click on a inside of element and get it's attribute
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
$(document).on("click", "#nativeLang > ul > li > a", function( event ){ | |
$('#Result').html( $(this).attr("id") ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment