jQuery .attr retrieving custom attribute returns undefined

前端 未结 5 1561
北荒
北荒 2021-01-18 00:55

i have the following problem using jquery.

I have sth like this

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-18 01:40

    Yes, since jQuery 1.6 I think you need to use .prop() instead of attr().

提交回复
热议问题