Get attributes from the rel attribute with jQuery

后端 未结 3 2001
名媛妹妹
名媛妹妹 2021-01-23 14:31

Im using a plugin that requires the rel-element to look like this.

3条回答
  •  日久生厌
    2021-01-23 14:38

    you can get the rel attributes that returns the string "useZoom: 'cdonZoom', smallImage: '1.jpg'". Than you can split the string using ":" and get the last array item.

    I hope it's helpful

提交回复
热议问题