I am trying to find the width of a child element. My template is in rails:
<div id="wrapper">
<div id = "inner"></div>
<%= image_tag(photo.file_name) %>
</div>
I want to get the width of the image after "inner" using javascript. Any ideas on how I can go about this?