I try to create a node dynamically, the closes I got is:
$('#jstree_cats_div').jstree(
"create_node", parent, position, newNode, false, false);
which throws an exception:
TypeError: Object #<Object> has no method 'match'
I couldn't find any working example... all the jsfiddel example on other questions are not working, seems like they all using old API (my guess)
also the 'create' in the demo in jsTree web site http://www.jstree.com/demo doesn't work.
Please supply a working example of adding a node dynamically.
Thanks