Message from JavaScript discussions

October 2020

— What does .live do, drop the doc

— 

Https://api.jquery.com/live/

Description: Attach an event handler for all elements which match the current selector, now and in the future.

— Note: This API has been removed in jQuery 1.9; please use on() instead.

— Ye, ok, it's written there how to convert

— 

var container = $(this);
$('.myClass').on('click', container, function() { ... });

— That's not work for me.

I need container and .myClass to be with together with same parent like document.

Message permanent page

— Something like:

var container = $(this);
$(document).on('click', '.myClass' + container, function() { ... });

Message permanent page

— container.on('click', '.myClass', func) then

— The first question is: why jQuery in 2020

— $(this).find('.myClass').on('click', func)

— Same as React, Angular etc 2020

— Team vanilla 🤤