What are equivalent of jQuery function find() and attr() in prototypejs?
Could someone help me to convert this code using prototypejs?
var className = $(this).find('.myBtn').attr('class');
$(this).find('.tab').attr('class', className + ' current');
Thanks in advance!
For others searching and landing here: I think Prototype's Element.select()
would be a better fit as a jQuery $.find()
equivalent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With