I have a div that has a border radius. I am trying to retrieve the border-radius using Jquery. It is working everywhere except firefox.
The file:
<html>
<head>
<script src="resources/jquery/jq.js"></script>
</head>
<style>
div{
border-radius:30px;
background-color:black;
display:block;
width:300px;
height:300px;
}
</style>
<body>
<div id = "SelectedDiv"></div>
</body>
</html>
$('#SelectedDiv').css('border-radius') returns an empty string ( "" )
I tried to do what was instructed in the following stackoverflow page: How do I get the border-radius from an element using jQuery? since they had the same problem. However, nothing worked
$('#SelectedDiv').css("MozBorderRadius");
and
$('#SelectedDiv').css("-moz-border-radius-topleft");
returned undefined