Skip to content

Instantly share code, notes, and snippets.

@matheusmurta
Created October 8, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matheusmurta/7fc21a1d3ff33062797a5f0ab0ae10a0 to your computer and use it in GitHub Desktop.
Save matheusmurta/7fc21a1d3ff33062797a5f0ab0ae10a0 to your computer and use it in GitHub Desktop.
jQuery click on a inside of element and get it's attribute
$(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