How to get the width of an svg:g element February 17, 2023 by Tarik Try .getBoundingClientRect $('.my-class')[0].getBoundingClientRect().width; Demo http://jsfiddle.net/5DA45/