Get the highest and lowest values of a certain attribute in jQuery or Javascript

前端 未结 7 1095
鱼传尺愫
鱼传尺愫 2020-12-10 05:37

I have the following divs:

test
test
7条回答
  •  庸人自扰
    2020-12-10 06:04

    You should use data instead of id for this.

    test
    test
    test
    etc.

    Edit: I shortened my answer in favour of Rory McCrossan's accepted answer above.

提交回复
热议问题