I'm wondering which approach is better and why: A) One document on click with many selectors, B) multiple document on clicks.
Also is there a limit on selectors for A? Thanks.
A)
$(document).on('click', '#a, #b, #c, #d, #e', function(e){
});
vs
B)
$(document).on('click', '#a', function(e){
});
$(document).on('click', '#b', function(e){
});
$(document).on('click', '#c', function(e){
});
$(document).on('click', '#d', function(e){
});
$(document).on('click', '#e', function(e){
});