How to get a list of verified identifiers from jstree with a checkbox plugin?
var result = new Array(); $(".jstree-checked").each(function(i, element){ result[i] = $(element).attr("id"); });
var arr = new Array(); var i = 0; $('#dtree_region li').filter('.jstree-checked').each(function(){ arr[i] = $.makeArray($(this).attr("id")); // sel_id = sel_id + ',' + $(this).attr("id"); i++; }); var sel_id = arr.join(",");
http://www.jstree.com/documentation/checkbox
.get_checked ( context, get_all ), .get_unchecked ( context, get_all )
(at the bottom of this page)
Source: https://habr.com/ru/post/1745093/More articles:How to write RDF schema? - xmlStackOverFlowException при генерации кода С# из xsd с помощью xsd.exe(VS2010) - c#Determining where to animate a map based on a list of geopoints - androidCreating a Gallery in Rails - ruby-on-railsОпределение того, какие тесты предоставляют покрытие в результатах покрытия кода VS2010 - unit-testingExcel - reference values via OleDB from .Net client - c #Получить информацию из PayPal? - c#Why is this Java application printed "true"? - javahow to get individual parameters from a list of dynamic parameters in a web method submitted using jQuery ajax? - jqueryiPhone Can I write an application via Bluetooth to connect to a device other than the iPhone? - iphoneAll Articles