Use jQuery UI
A sample snippet below for your reference:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Draggable - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; }
</style>
<script>
$(function() {
$( "#draggable" ).draggable();
$( "#draggable1" ).draggable();
$( "#draggable2" ).draggable();
});
</script>
</head>
<body>
<div id="draggable" class="ui-widget-content">
<p>Accordion Header1</p>
</div>
</br>
<div id="draggable1" class="ui-widget-content">
<p>Accordion Header2</p>
</div>
</br>
<div id="draggable2" class="ui-widget-content">
<p>Accordion Header3</p>
</div>
</body>
</html>
http://jqueryui.com/download/
All the best:)