You should not have multiple elements with the same identifier. Internet Explorer will probably find out. (Or it doesnβt recognize it, but coincidentally has an error that behaves as if it were, and Microsoft decided to call it a function.)
Just specify elements that currently have the same identifiers, different identifiers, and a common class name. Then you can use $('.class.class2') and it will work in IE.
source share