I am currently facing an issue with my code that is used to retrieve the width of an image which is set in percentages. Although I am able to obtain the width in pixels, I am struggling with correctly inserting the variable into the CSS property value using JavaScript.
This presents a challenge for me.
$("#ProPhotosID").css("height", '' + height + '')
You can see the full example below:
var img = document.getElementById("ProPhotosID");
var height = img.clientHeight;
$("#ProPhotosID").css("height", '' + height + '')
Thank you.