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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -