douping5226 2017-01-03 10:12
浏览 273
已采纳

在php中确认后隐藏按钮

I have created a button.It will show a Yes/No confirmation box when clicks on it.I want to hide the button when user clicks on 'Yes' button.My code is here

 <input type="button" name='hide_button' id='hide_button' value="Hide?"onClick="return confirm_hide();">  

Javascript :

function confirm_hide(){
if(confirm('Do you wish to hide the button?'))
    return true;
else return false;
}
  • 写回答

3条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥100 IIC通讯数据算法分析
      • ¥15 matlab 绘制涡流场
      • ¥15 依存句法分析如何与BERT模型及GCN相结合
      • ¥66 有偿收一个会Python 与unitysocket通信,会简单mediapipe手势识别的哥
      • ¥15 药店卖药设计使利润最大
      • ¥15 模拟银行实现VIP服务
      • ¥20 ECU在实车上can通讯失败或不稳定
      • ¥15 关于VB.net调用Excel如何打包的问题?
      • ¥15 VB6.0+WebBrowser如何实现网页内嵌图片按钮点击
      • ¥30 请问纯C语言如何编写简易的easyx图形库