Category Archives: jQuery

[jsTree] Populating the tree using JSON

Using Json $(‘#using_json’).jstree({ ‘core’ : { ‘data’ : [ ‘Simple root node’, { ‘text’ : ‘Root node 2’, ‘state’ : { ‘opened’ : true, ‘selected’ : true }, ‘children’ : [ { ‘text’ : ‘Child 1’ }, ‘Child 2’ ] … Continue reading

Posted in jsTree | Leave a comment

[jsTree] Expand and collapse buttons.

<input type=”button” value=”Expand All” onclick=”$(‘#jsTreeID’).jstree(‘open_all’);”> <input type=”button” value=”Collapse All” onclick=”$(‘#jsTreeID’).jstree(‘close_all’);”> Ref: jsTree: adding Expand All and Collapse All buttons

Posted in jsTree | Leave a comment

[JavaScript][jQuery] How to enable/disable select field?

[jQuery] $(‘input[type=radio][name=ldap-sync-type]’).change(function() { if (this.value == ‘0’) { $(“select[name=day-option]”).prop(“disabled”, true); $(“select[name=clock-option]”).prop(“disabled”, true); } else if (this.value == ‘1’) { $(“select[name=day-option]”).prop(“disabled”, false); $(“select[name=clock-option]”).prop(“disabled”, false); } }); [JavaScript] $(‘input[type=radio][name=ldap-sync-type]’).change(function() { if (this.value == ‘0’) { $(“select[name=day-option]”).attr(“disabled”, “disabled”); $(“select[name=clock-option]”).attr(“disabled”, “disabled”); } else if … Continue reading

Posted in JavaScript, jQuery | Leave a comment

jQuery Tablesorter

Pad Name Last Edit Date Active 資料1 資料2 資料3

Posted in jQuery | Leave a comment