There is an object with a class .selector For him, it describes the style.
After the page loads done some javascript code which - it does not matter. The result of the - CSS properties assigned to the object width of 110px. How do I use javascript to get the width, which is written for the object in the file of styles?
In other words, how to get value (width = 150px), if the objects are assigned to the width equal 110px?
<style>
.selector {
min-width: 100px;
width: 150px;
max-width: 200px;
}
</style>
<div class="selector"></div>
$(document).ready(function(){
$('.selector').width('110');
alert($('.selector').css('width'));
});
Here's an example of how to do so in the ALERT hatched 150 px instead of 100px? http://jsfiddle.net/djmartini/gn3f4590/1/