.
css("Style name")
JavaScript
var value1 = $("#myElement1").css("color");
Html
<html>
<!-- heading -->
<head>
<meta charset="utf-8">
<title>Example</title>
</head>
<!-- page -->
<body>
<!-- connect the library jQuery -->
<script src="https://dir.by/example_lib/jquery/jquery-3.3.1.min.js"></script>
<!-- HTML Elements -->
<div id="myElement1" style='color:red;'>
Hello
</div>
<!-- JavaScript -->
<script>
// the page has opened
$( function()
{
// looking for an element by ID and we get the color
var value = $("#myElement1").css("color");
// show the color on the screen
alert(value);
});
</script>
</body>
</html>