I'm thinking this should be fairly simple but I can't get it to work. I use get_selected() like so:
var curr_full = $('#jst_classl').jstree(true).get_selected(true);
And then I want to see if the node has a certain class named "someclass":
var hasSomeClass = curr_full[0].li_attr.class.hasClass("someclass");
This always yields an error:
TypeError: curr_full[0].li_attr.class.hasClass is not a function. (In 'curr_full[0].li_attr.class.hasClass("someclass")', 'curr_full[0].li_attr.class.hasClass' is undefined)
Any clues?
J