$(document).ready(function() { /* expand active tree. */ $('.tree').tree('expandSelect', '.active'); });