I want to change the image source if the screen size is either the width of an iPhone or iPad when viewed vertically. How do I do this?
See my attempt below of an iPhone.
if( $(window).width() = 320)
<img src="images/the_oaks_bg.jpg" id="bg" alt="The Oaks Lodge">
What am I doing wrong?