osgesoqnxdpo
New Member
How would I set something with \[code\]css()\[/code\] the following code? I tried but it doesn't work!I looked for a way to do that but still couldn't find it! Not even here: http://api.jquery.com/css/NOT working\[code\]$('#MyClass123').css('content:url','("image.jpg")');$('#MyClass123').css('content','url("image.jpg")');$('#MyClass123').css('content:url("image.jpg")');\[/code\]Working\[code\]<style>.MyClass123{ content:url("image.jpg");}</style><img class="MyClass123"/>\[/code\]