I have this jQuery Code:
$('#select-adults-room-1').change( function () {
og.removeErrorsOcio();
});
$('#select-kids-room-1').change( function () {
og.removeErrorsOcio();
});
What is the best way to do it? I know this looks weird, but not sure how to improve it if it's possible. I'm looking for some like this:
$('#select-adults-room-1','#select-kids-room-1').change( function () {
og.removeErrorsOcio();
});
Thanks
$('#select-adults-room-1,#select-kids-room-1')Multiple Selector (“selector1, selector2, selectorN”)