I am using bootstrap row-fluid with images in it. Dimensions of this images changes when the browser window changes so is there any event listener that triggers when image resize happens? I want it to use to get image width. I have tried this:
$(window).load(function() {
$('img.product-thumbnail').resize(function(){
alert($('img.product-thumbnail').width());
});
});
and my img tags are:
<img src="img/produkt1.png" title="Názov produktu" class="product-thumbnail">
<img src="img/produkt2.png" title="Názov produktu" class="product-thumbnail">
5 images total. Right now I am not getting any alerts but I know that img changed its size (chrome dev tools > show dimensions). Is there any way to acomplish this? (jquery is included so there shouldnt be problem with selectors)