Using this with a target

Using this with a target

I can output this() to a console.log(). How do append it to a div as I cannot chain this().

  1. $(document).ready(function(e) {
  2. $('a').click(function(){
  3. data = $('a').attr('data-urlrdir');
  4. console.log($(this).data());
  5. });
  6. });