I recently met this problem as well, and I really didn't want to do the "extra" work which was getting the width of the parent and calculating the percentage.
After a few quick attempts, this is what I have got:
$($($(table).find('tr')[0]).find('td')).each(function (i, e) {
var proptW = $(e).prop("style").width;
console.log(proptW);
});
So, I think this is the closest way to use jQuery to get the value of the width of an element based on what the developer specified in the css.
As you can see, I have a table and I need to retrieve the widths for each of columns.
We cannot get the developer specified value(DSV) directly with jQuery method, but after combined with the JavaScript built-in method, it's just one step away from getting the DSV.
As the DSV is in the Style and Style is a property of an element, so we can use the jQuery method: prop() to get it. This method returns the style object(say sty), so that we can call sty.width to get the DSV directly.
This is not the pure jQuery way to get it, but it is simple enough and works for me.