You can use .prop() to disable the buttons on page load:
$('#next,#pre').prop('disabled',true);
and re-enable it when your element is selected:
$('#tree').on("select_node.jstree", function (e, data) {
$('#next,#pre').prop('disabled',false);