How do I get the border-radius from an element using jQuery?
- by S Pangborn
I've got a div, with the following HTML and CSS. In an attempt to make my Javascript code more robust, I'm attempting to retrieve certain CSS attributes from the selected element.
I know how to use the .css() getter to get elements, but how to get the border-radius using that method?
jQuery's documentation is sparse.
HTML:
<div id="#somediv"></div>
CSS:
#somediv {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}