$('[data-product-trigger]').on('click', function (e) { var $this = $(this) var key = $this.attr('data-product-trigger') console.log($this.val()) })