How can I get the ID of an element using jQuery?

后端 未结 19 2917
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 11:57

Why doesn\'

19条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 12:23

    it does not answer the OP, but may be interesting to others: you can access the .id field in this case:

    $('#drop-insert').map((i, o) => o.id)
    

提交回复
热议问题