Try .getBoundingClientRect
$('.my-class')[0].getBoundingClientRect().width;
More Related Contents:
- jQuery SVG, why can’t I addClass?
- How to use z-index in svg elements?
- How to check if an embedded SVG document is loaded in an html page?
- jQuery Selector + SVG Incompatible?
- SVG – click is not a function [duplicate]
- Is it possible to append a div inside an SVG element? [duplicate]
- How do I save/export an SVG file after creating an SVG with D3.js (IE, safari and chrome)?
- Add names of the states to a map in d3.js
- Convert css width string to regular number
- Does the attr() in jQuery force lowercase?
- Include SVG files with HTML, and still be able to apply styles to them?
- jQuery SVG vs. Raphael [closed]
- Create a table in SVG
- Show image in div and add PREV/NEXT buttons
- Stop form refreshing page on submit
- navigator.geolocation.getCurrentPosition sometimes works sometimes doesn’t
- Detect IF hovering over element with jQuery
- jQuery.getJSON – Access-Control-Allow-Origin Issue
- Rails 5: how to use $(document).ready() with turbo-links
- JavaScript – head, body or jQuery?
- How do I replace the entire HTML node using jQuery
- Apply jQuery datepicker to multiple instances
- How do I drag multiple elements at once with JavaScript or jQuery?
- How do I monitor the DOM for changes?
- Difference between screen.availHeight and window.height()
- How to trigger jquery.ajax() error callback based on server response, not HTTP 500?
- Remove occurrences of duplicate words in a string
- make readonly/disable tinymce textarea
- Chrome Extension “Refused to load the script because it violates the following Content Security Policy directive”
- How do I detect IE 8 with jQuery?