This is how i get so far but it still does not work $(document).ready( function() { var contribuinte = $("#cbfv_55").text(); $('#fileTreeDemo_3').fileTree({ root: '/' + contribuinte + '/' , script: 'jqueryFileTree.php' }, function(file) { openLink(file); }); });
What am I doing wrong? Is this the way to call my variable + contribuinte + ?