How can I retrieve the background color code of a specified element?
var backgroundColor = $(".element").css("background-color");
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="element" style="background-color: #f5b405"></div>
Desired Output:
#f5b405