jquery - Replacing SVG block with js -


i have 2 svg image files. other supposed use on desktop sizes , on mobile sizes. how can change between files? can't use img tag because have link inside svg. current implemention following..

in template:

<?php include("img/content/myimage_mobile.svg"); ?> 

now works fine on mobile. link etc. works nicely. when come desktop size, how can change file myimage.svg? js somehow?

thanks!

haha, sorry this. stupid. of course wrap svgs 2 divs , css & media queries show divs on right moments :d


Comments