I want to design a drag and drop property for fill in the blanks from the given options, for example:-
Q: He is a __ boy.
Option:
a. good
b. bad.
In this user will be able to pick the options and drop on the blanks. And options should not be in list instead it should be in div.
<script>
$(function() {
$("#sortable1, #sortable2").sortable({
connectWith: ".connectedSortable"
}).disableSelection();
});
</script>
</head>
<body>
<div id="sortable1" class="connectedSortable">
This is a <div >_______</div> story
He is a <div>_______</div> boy.
Food is <div >________</div> here.
</div>
<b>option</b>
<div id="sortable2" class="connectedSortable">
<div >good</div>
<div >bad</div>
<div >lousy</div>
<div >nice</div>
<div >awesome</div>
</div>