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!
$(document).ready(function(){
var jsfields = $('#myTree').jstree('get_selected');
$('.jsfields').val(JSON.stringify([jsfields]));
})
Change the value of $('#myTree')
to you respective tree, this is best working for me in ajax call. slight modification may be needed to populate input field of simple form.