Prototype equivalent for jQuery closest function

前端 未结 2 1392
甜味超标
甜味超标 2021-02-07 06:54

Is there any equivalent in Prototype for the jQuery closest function?

http://api.jquery.com/closest/

thanks

2条回答
  •  臣服心动
    2021-02-07 07:14

    .next('.className') or .next('divId')

    There is also .previous(), .down() and .up(), depending on where you're looking.

提交回复
热议问题