棘手啊解决思路

棘手啊我实现这样一个功能一个按钮 一按 按钮隐藏 出现我要的字怎么弄啊 最好用javascript和jsp Struts[解

棘手啊
我实现这样一个功能
一个按钮 一按 按钮隐藏 出现我要的字
怎么弄啊 最好用javascript和jsp Struts


[解决办法]

探讨
<input type="button" name="bu" value="隐藏" onclick="hiddenButton()">
<div id="showWord" style="display:none">显示的字 </div>

<script>
function hiddenButton(){
document.getElementById("showWord").style.display = "";
document.getElementById("bu").style.display = "none";
}
</script>