I have two elements and I want to delegate click event to their children. This code works:
list.on('click', '> *', function (e) {
clickHandler($(this), e);
});
listSelected.on('click', '> *', function (e) {
clickHandler($(this), e);
});
Tried to use jQuery element array, but this code doesn't work:
$([list, listSelected]).on('click', '> *', function (e) {
clickHandler($(this), e);
});