I do search with keyword and get Matching node ID in jstree.
Now I have to navigate in js tree with “Next” and “previous” button.
I am using below lines of code which selects all node having same specId.
_selectCurrentTreeNode : function() {
var specId = this._currentMatches[this._currentCursorPosition];
this._specTree.jstree("select_node", "#" + specId);
}
In my case there are three nodes which are having same specId but I want to select only one node at a time and after clicking “next” button I want to select another node.
How can I write this logic.
Just a side node, by HTML guidelines, you aren’t allowed to have multiple elements with the same id. They should be unique