cant 'register' draggable/active DIV

cant 'register' draggable/active DIV

    HI, im trying to send the position of X amount of divs to a DB, my problem is, what i think, that the current  div  being dragged isn't registered. Im trying to alert 
     alert( $(this).attr("id") );
    but only receiving 'undefined'

    /C
    1. $(".flytt").draggable({ 

    2.      stop: function() {
    3.      var data_pos = $(this).position();
    4.  
    5.      $.post("save_pos.php", { id: $(this).attr("id"), x:  Math.floor(data_pos.left), y:  Math.floor(data_pos.top) }, 
    6.      function (data)
    7.      {
    8.      if (data == 1) {
    9.      alert( "Saved" );
    10.      }else{
    11.      alert( $(this).attr("id") );
    12.      }
    13.      });
    14.      }
    15.      });