jQuery UI: sortable('toArray') returns an empty array

后端 未结 7 677
青春惊慌失措
青春惊慌失措 2021-02-01 17:28

This has me stumped. The follow code returns \",,,,,,\":



        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 18:16

    To use another attribute you can do this:

    $('#element').sortable('toArray' {attribute: 'value'})
    

    This will make it so it now uses the attribute 'value' from your code.

    Documentation on Sortable toArray method

提交回复
热议问题