I have use rubax sortable pakage have a problem


i want to make a sortable list using class attribute rather than id as explain below but when i use class it stop working see my code from which you will know what i am saying

var el2 =document.getElementById(‘listB’)
Sortable.create(el2, {
group: {
name: ‘shared’,
pull: ‘clone’,
put: false,
sort: true



    {{#each mytemp}}
  • {{name}}
  • {{/each}}

so i want to use this code as

  • var el=document,getElmentByClassName(‘listB’)
    but when i use this code using class it stop working can any one help me