I have 2 or more variables which were selected with jQuery, and I want to assign click events on all of them with the same function. Or one variable and one selector. How do I do it? I could do:

```
function click_event_1(var_1, var_2) {
    var_1.on("click", function() {
        alert(1);
    });
    var_2.on("click", function() {
        alert(1);
    });
}

function click_event_2(var_1, selector) {
    var_1.on("click", function() {
        alert(1);
    });
    jQuery(selector).on("click", function() {
        alert(1);
    });
}

```

But I want to write only one function for each event.