I want to get the width and height of the image on click. Below is my code:
$(".sim-row-edit-img").click(function(){
alert("Image clicked, width is __px and height is __px");
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<img class="sim-row-edit-img" border="0" alt="W3Schools" src="http://icons.iconarchive.com/icons/dtafalonso/android-l/256/WhatsApp-icon.png" width="100" height="100">
I would like the dimensions of the image and not the width="100" height="100"
tag I have written in img attr
.