So I have following Jquery
$j("a#Pinterest").html("<img src='/images/Social Media/pinterest.png'>");
And mark up is as follows ;
<a id="Pinterest"></a>
Which works fine, but the user has an option to add multiple to one page, and I noticed that in IE7 only the first anchor gets the image attached and not the others. In all other browsers, they all get the image attached.
Any Ideas ?
id must be unique on a html page. You can only use the same ID once. Use a class attribute instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With