I\'m trying to get the original width of an image with JQuery and make some adjustments in the CSS with a condition if an image is wider than 700px.
I used this code
Use the jQuery document ready function like this:
$(document).ready(function(){ });
This is a common "bug" with code that is copied from jsFiddles.