jQuery: How to calculate the maximal attribute value of all matched elements?

后端 未结 6 837
悲哀的现实
悲哀的现实 2020-12-01 20:57

Consider the following HTML:

6条回答
  •  生来不讨喜
    2020-12-01 21:44

    You could also use Array.sort in jQuery, as explained here then use $('.a:last') to get the selected element.

提交回复
热议问题