HTML code resides below
<!doctype html>
<html>
<head>
<title>jQuery UI: Alphabet Matcher</title>
<link href="css/normalize.css" rel="stylesheet">
<link href="matchalphabate.css" rel="stylesheet">
<!-- jQuery UI CSS -->
<link href="js/jquery-ui-1.12.1/jquery-ui.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Drag and Arrange Alphabets</h1>
<div id="dragable">
<h3>Alphabet Table</h3>
<button class="b">A</button>
<button class="b">B</button>
...
</div>
<h4>Arrange now</h4>
<ul id="sortableToo">
<li>Other Item A</li>
<li>Other Item B</li>
...
</ul>
<a href="" class="button">Submit</a>
<a href="" class="button alt-button"> Reset</a>
</div>
<!-- .container -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
window.jQuery || document.write('<script src="jquery-3.3.1.js"><\script>');
</script>
<script src="js/jquery-ui-1.12.1/jquery-ui.min.js"></script>
<script src="js/matchalphabate.js"></script>
</body>
</html>
CSS code is as follows
.container {
position: relative;
width:1000px;
...
}
...
jQuery implementation below
$(function (){
$(".b").draggable();
});
To arrange the alphabet from A-Z, drag and drop them on the table. Upon fully arranging them, a message will be displayed when the submit button is clicked, or you can reset the arrangement to its previous state.
If buttons are not dragging alphabet A-Z and failing to arrange correctly, please provide information on how to successfully rearrange them upon clicking the submit button.