https://github.com/dipson88/treeselectjs
Using the package I mentioned above, I created a select structure in the treeview with jquery.
<div id="my-treeselect"></div>
const domElement = document.querySelector('#my-treeselect') const treeselect = new Treeselect({ parentHtmlContainer: domElement, value: [], options: data });
What I want to do is to post the data I selected in the my-treeselect div with an html form. I want to get the IDs of the selected ones. I couldn’t find a way to do this.
You need to sign in to view this answers