I need assistance with changing the background color of a div based on whether an audio file is playing or not.
$('.uprow2').on('click', function() {
$('#karma')[0].play();
});
.uprow2 {
width: 680px;
height: 60px;
background: #000000;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="uprow2">
<p class="song">LISTEN - KARMA POLICE</p>
</div>
Please provide any suggestions or solutions to achieve this functionality.
Thank you!