Try this instead: $(document).ready(function(){ $('#asdf').slideDown('slow'); $('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight: 20 }); });
The imageareaselect will be called after the image is loaded, You could even put this into a click function as follows: $(document).ready(function(){ $('#button').click(function() { $('#asdf').slideDown('slow'); $('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight: 20 }); }); }); Let us know how you get on. http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/