Is it possible to re-write the following selector using an “OR” operator or similar?
$("a[href$='avi'], a[href$='mov'], a[href$='mp4'], a[href$='m4v']")
Ideally something like:
$("a[href$='avi|mov|mp4|m4v']") // incorrect
to get a few more miles out of my keyboard. I have a test fiddle.
You can do this by extending jQuery with James Padolseys Regex Selector for jQuery. Pretty useful when you want to put regex into your selectors.
Run this code in Test fiddle