Having some code like this one
$a = $('#a');
$b = $('#b');
$c = $('#c');
$('#a, #b, #c').keyup(function () {
//Event handling
});
I would like to know
- If it is possible to use existing cached elements to handle events instead of the selector.
- If this is possible and proper, does it make any difference?
$a.add($b).add($c).keyup( ...