fix text
HTML
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<script src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="jxgbox"></div>
CSS
#jxgbox {
width: 700px;
height: 700px;
}
JavaScript
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5, 5, 5,-5], axis: false, grid: true});
var p = board.create('text', [1, 1,'NO']);
var t = board.create('text', [-1, 1, 'Test']);
var y = board.create('text',[2, 2,function(){ return "The new text is " + p.plaintext +' ' + t.plaintext ; }]);
//p.addChild(y);
//t.addChild(y);
p.setText('go');
board.update();