-3

Dropdown code.. Available items @for (var i = 0; i < ViewBag.Fields.Count; i++) { @ViewBag.Fields[i].Name } Selected items

$(document).ready(function () {
        $("#@sort1, #@sort2").sortable({
            connectWith: ".connectedSortable",
        }).disableSelection();
    });
sheshadri
  • 1,207
  • 9
  • 21

1 Answers1

0

Try to escaping the special characters use '\\'

$("#\\@sort1, #\\@sort2").sortable({
        connectWith: ".connectedSortable"
 }).disableSelection();

For reference : Stackoverflow

Community
  • 1
  • 1
Sudharsan S
  • 15,336
  • 3
  • 31
  • 49