Add border to objekt while draging/reorder
I need to add a border while draging and reorder a table within a list:
- $(function () {
- $("#sortable").sortable({
- start: function () {
- $(".my-table").css("border", "1 px solid #202020");
- },
- stop: function () {
- $(".my-table").css("border", "none");
- }
- }).disableSelection();
- });
This approach doesn't work. So how could this be done?