jQuery Get Random Element From a Selection Returned By $(selector)

前端 未结 3 2323

If $(\'.my-element\') matches multiple element, is there a quick way to get a random element out of these?

3条回答
提交回复
热议问题