Hi there,
I'm having some troubles with object returning from getNode method on tree widget:
This is not working:
var nodeid = 23; // This node exists, of course
var node = $('#SomeTree').tree('getNode', nodeid);
$('#SomeTree').tree('uncheck', node.target); // This trows an error "Uncaught TypeError: Cannot call method 'replace' of undefined "
And this works:
var checked = $('#SomeTree').tree('getChecked');
$('#SomeTree').tree('uncheck', checked[0].target); // This unchecks that node of checked[0]
What am I doing wrong?
Thanks in advance,
Juan