dongpu3347 2017-01-15 18:45
浏览 167

如何在我的html表单上显示错误消息和确认消息?

Can anyone here help me to display messages i.e. error messages, successful message sent confirmation in forms?

I have two forms in my HTML template which are reservations and contact. I want to display the messages like this

reservation form :

enter image description here

For your convenience I have uploaded the whole project in here Full project

  • 写回答

1条回答 默认 最新

  • dsxon40042 2017-01-15 20:09
    关注

    You can keep a div on the position where you want to show the message and then hide it by default. Whenever you have the message to show, just append the message in the div using javascript and make the div visible. If you are using bootstrap, there are bootstrap alerts which you can use. http://www.w3schools.com/bootstrap/bootstrap_alerts.asp

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?