jQuery logo

If you want to set the same action for several elements, you can write IDs of elements separated by comma. This way:

    $("#controlOne, #controlTwo").click(function () { 
                do_something(); 
    });