I am working on x3dom, now I have a two groups in the xhtml file, I want to show only one group at a time by clicking the button. Here is my code, but it doesn't work, only when I replace hide() with remove() it worked, however by removing the group I don't know how to bring them up a again. Anyone good solutions?
$("#btn").click(function () {
Group[DEF="ball"].show();
Group[DEF="num"].hide();
});