duandu8202 2011-09-26 07:37 采纳率: 0%
浏览 28
已采纳

jQuery弹出窗体? [关闭]

I have a form which is currently sitting in a division on a php page.

I would like it to do the following:

  • User clicks link to bring up form in pop-up division in center of screen
  • User fills out the form
  • User hits the submit button
  • Form closes and brings up another small division with a thank you message which shows for 5 seconds then disappears

What's going to be the easiest way to achieve this?

I currently have jQuery and jQuery Tools scripts on the site in question.

EDIT: I'can't use jquery-ui as that conflicts with jQuery tools accordion.

  • 写回答

2条回答 默认 最新

  • dqjo4340 2011-09-26 07:46
    关注

    You should have a look at this documentation about jQuery UI Dialogs:

    http://jqueryui.com/demos/dialog/

    Have also a look at Modal Forms (look at the navigation menu at the right of the page). Basically, you only set up a form inside of a dialog. Having that thank you -Dialog show up for a few seconds is also easy by using jquery Dialogs and something like setTimeout to close it.

    Don't forget to include the jQuery and jQuery UI libraries into your source code. Have a look at some jQuery tutorial first, if you don't know jQuery.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办