We would like to know how to get border value.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<style type='text/css'>
#test {<!--from w w w . j a va2 s . co m-->
position: absolute;
height: 100px;
width: 100px;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
var border = $('#test').css('border', '2px solid red')[0].style.border;
console.log(border);
});
</script>
</head>
<body>
<div id="test"></div>
</body>
</html>
The code above is rendered as follows: