What this should do: It adds a Class to the first Child. The second one is just for testing. It should change the background-color of one list-element to red. None of those applies.
clientStuff();
alert("Hi");
function clientStuff(){
$('.client-unit').first().addClass('active-client');
}
$( "li" ).first().css( "background-color", "red" );
What i've tried:
- I checked the linking of the documents. And their order. Here comes the linking:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link href="styles.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<script src="script.js"></script>
- I checked the semicolons and for spelling mistakes.
- I asked mighty Cthulu for help. He said "no."
Does anyone have an idea?

$(document).ready()?$. Also, mighty Cthulu requires a sacrificial offering from you first before consenting to offer any assistance.