You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script:
$(document).ready(function() {
var options = {choose: 'Katalog...', select_class: 'vertical', indexed: true, set_value_on: 'each', on_each_change: 'http://domain.tld/json_pbekatalog.php', loading_image: '/images/ajax_load.gif'};
$.getJSON('http://domain.tld/json_katalog.php', function(tree) { // initialize the tree by loading the file first
$('input[name=lnr]').optionTree(tree, options); // .change(displayParents)
});
});
json_katalog.php result:
{"52":"Allgemeines","5":"Bernstein"}
The json data is sorted alphabeticaly by the value.
- Allgemeins
- Bernstein
The optiontree will sorted by the key
- Bernstein
- Allgemeines´
How can i display the results in the optiontree as it will be in the json data
without resorting! Or sort by value?
Version 1.3
Original issue reported on code.google.com by [email protected] on 18 Jan 2012 at 2:57
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 18 Jan 2012 at 2:57The text was updated successfully, but these errors were encountered: