I’m trying to select all input elements on a page, but not the ones that are of type image, button or submit. What came to my mind first was selecting all input elements that are of type text, then all of type checkbox etc.
However, this isn’t very elegant. I was wondering if there is any better technique here. What would be useful is a selector like input[type=text|checkbox|radio|password|etc], but this does not seem to be available.
I know I can also select all inputs and then filter them using .filter() but is there a more generic selector to select elements having one of a list of attributes?
Since you want to include everything except a few particular types, try this: