JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#accordion1").accordion({
change: function(event,ui) {
$( "#accordion2" ).accordion( "option", "active", ui.options.active );
}
});
$("#accordion2").accordion();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="accordion1">
<h3><a href="#">Section 1</a></h3>
<div>Hede</div>
<h3><a href="#">Section 2</a></h3>
<div>Hödö</div>
<h3><a href="#">Section 3</a></h3>
<div>Bödö</div>
</div>
<br />
<div id="accordion2">
<h3><a href="#">Section 1</a></h3>
<div>Hede</div>
<h3><a href="#">Section 2</a></h3>
<div>Hödö</div>
<h3><a href="#">Section 3</a></h3>
<div>Bödö</div>
</div>
</body>
</html>