Add border to objekt while draging/reorder

Add border to objekt while draging/reorder

I need to add a border while draging and reorder a table within a list:

  1. $(function () {
  2.           $("#sortable").sortable({      
  3.               start: function () {
  4.                   $(".my-table").css("border", "1 px solid #202020");
  5.               },
  6.               stop: function () {
  7.                   $(".my-table").css("border", "none");
  8.               }           
  9.           }).disableSelection();

  10.       });

This approach doesn't work. So how could this be done?