Let's say I have jQuery selector which is very long, something like this:
jQuery('*:not(".navbutton, .navbutton span, #menuContainer, #rollmenu, #postersTheme, optgroup, optgroup option, .custom-select, .select-selected, #divSelectedSize, #divSelectedQty, #divSelectedCountry, #divSizeItems, #divQtyItems, #divCountryItems")').click(function(e) {
// some code here...
});
Is there a way how to make this very long selector having each selector on a separate line so it would be better readable, something like this?
jQuery('*:not(".navbutton,
.navbutton span,
#menuContainer,
#rollmenu,
#postersTheme,
optgroup,
optgroup option,
.custom-select,
.select-selected,
#divSelectedSize,
#divSelectedQty,
#divSelectedCountry,
#divSizeItems,
#divQtyItems,
#divCountryItems")').click(function(e) {
// some code here...
});
Of course, above hypothetical "shortening" does not work ending up in breaking jQuery completely, thus I am asking if anyone around here know if something like this can be done and if so, how?