在prototypejs中查找()和attr()

Jea*_*ert 4 jquery prototypejs

什么相当于prototypejs中的jQuery函数find()和attr()?

有人可以帮我用prototypejs转换这段代码吗?

var className = $(this).find('.myBtn').attr('class');
$(this).find('.tab').attr('class', className + ' current');
Run Code Online (Sandbox Code Playgroud)

提前致谢!

mar*_*ead 11

对于在这里搜索和登陆的其他人:我认为Prototype Element.select()更适合作为jQuery $.find()等价物.