drag and drop is not working properly(dnd_stop)

124 Views Asked by At

I am trying to drag and drop functionality by using jstree.This function is working fine but mouse pointer not dropping text. It's show pointer with selected text. my question is, How to remove text with mouse pointer?

enter image description here

<select id="tableList" name="tableList" size="25" style="width: 223px;height:60px;"></select>                                 


$(document).on('dnd_stop.vakata', function (e, data) {
    var newOption = $('<option class="list-group-item" value="'+data.data.nodes+',">'+data.data.nodes+'</option>');
    $('#tableList').append(newOption);
});
1

There are 1 best solutions below

0
On

Issue has been resolved. I have used $(document).on('dnd_stop.vakata', (e, data) => { function two times and got the error from that on, removed one function, after that functionality is fine.