隐藏按钮,该怎么解决

隐藏按钮
我打算点击id为md_outputlist_edit_slave,隐藏按钮id为undo
 $("#md_outputlist_edit_slave").click(function(){
  document.getElementById('undo').style.display="none";   
 });

没有效果
------解决方案--------------------
引用:
Quote: 引用:

貌似你用了jquery吧!为什么不使用jquery的hide方法呢!
$("#md_outputlist_edit_slave").click(function(){
  var undo=$("#undo");
  undo.hide()  
 });
   

还是没用呢

你应该在页面$(document).ready中加载这条语句吧