droppable parents

droppable parents

hi guys,

i'm trying to figure out, how i could declare drop-function for my elements easily:

  1. <div class="foo">
  2.     <div class="bla" test="1"></div>
  3. </div>
  4. <script>
  5.       $( ".foo .bla" ).droppable({
  6.             drop: function(event,ui){
  7.                   alert(this.attr('test'));
  8.             }
  9.       });
but that fails and i dont know why, can somebody help me pls!
thx