I have a jsfiddle here - http://jsfiddle.net/0zppxL95/
I'm trying to store a jQuery variable in a html data attribute
and then get that value when I click a button.
This will be in a loop so I wanted to store it on the variable on this object connected to the button so I can say when this button is clicked get this variable.
var test = 'Hello';
var output = $(this).parent().attr('data-text');