I have recently started learning jQuery and I am facing an issue with the website linked below. It works perfectly in Firefox, Chrome, and Opera but not in Safari.
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reverse Records - Click Me</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class='selector'>
<ul>
<li>
<input id='1' type='checkbox'>
<label for='1'>Option 1</label>
</li>
<li>
<input id='2' type='checkbox'>
<label for='2'>Option 2</label>
</li>
<li>
<input id='3' type='checkbox'>
<label for='3'>Option 3</label>
</li>
<li>
<input id='4' type='checkbox'>
<label for='4'>Option 4</label>
</li>
</ul>
<div class="button1"></div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
</body>
https://jsfiddle.net/dceh27we/#&togetherjs=jM21DCBopb
How can I make it work in Safari? Am I missing something?