I need to get the parent element of a dataset function, but can't seem to figure it out.
<div id="test">
$('#test').data('func', {
me: function() {
console.log(this.parent())
}
})
$('#test').data('func').me();
what I would like to return is <div id="test">
Of course, this does not work, but is this possible?