search jquery ajax code example
Example: jstree ajax search
$("#schema").jstree({
"core": {
"data": {
"url": url,
"type": "post",
"data": function (node) {
return { "ParentId": node.id };
}
}
},
"search": {
"case_insensitive": true,
"show_only_matches": true,
"show_only_matches_children": true,
ajax: {
"url": url,
"type": "post",
"data": {"yourdata": showtableonly }
}
},
"plugins": ["search"],
});
//Example Search
$("#schema").jstree(true).search("Your Text Here");