Adding class to IMG element dynamically

Hi, I need some help please,i want to add a class to the element IMG but the IMG element is loaded dynamically by the google map.

i tried


  $('img').addClass('mytest');

but it’s not working.

Thank you in advance.

That won’t work because google doesn’t use the img tag for such things. Instead, they use class names to show such images.

You could attempt to override the CSS that google uses, to you could go back to the original advice from that other thread where you are advised to use Google’s preferred solution of using a custom SVG image instead.

Thank you paul. :slight_smile: