Skip to content

Instantly share code, notes, and snippets.

@linkmckinney
Last active August 29, 2015 14:01
Show Gist options
  • Save linkmckinney/adc3c949495f4dd3c5bd to your computer and use it in GitHub Desktop.
Save linkmckinney/adc3c949495f4dd3c5bd to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$(".media-body").find("li:last").on("click", function(){
var price = $(this).closest(".media").data('price');
$(this).text(price);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment