I\'m using the jsTree jQuery plugin with the checkbox theme. Does anyone know how to get the selected values with a form post?
Thank you!
var selectedElmsIds = []; $("#jstree2").find("li").each(function(i, element) { //also includes the ones below 'undetermined' parent if ($(this).attr("aria-selected") == "true") { selectedElmsIds.push($(this).attr('id')); } }); console.log(selectedElmsIds);