[英]How to setup jquery ui dialog display
我有形式的代码
<div class="screen-reader-response"></div>
<div class="screen-reader-response" role="alert">My Content alert<div>
我是用户代码:
$( ".screen-reader-response" ).dialog();
问题:当我不提交任何东西时:没有内容的回显对话框
如何设定:
如果:否提交任何内容: <div class="screen-reader-response"></div>
如果没有:已提交: <div class="screen-reader-response" role="alert">My Content alert<div>
echo警报My Content alert
给我任何想法吗?
访问我的网站: http : //www.graylinecruisehalong.net/始终在不提交内容时对话内容?
如果没有提交:
$(".screen-reader-response").html("").dialog('open');
提交时:
$(".screen-reader-response").html("My Content alert").dialog('open');
要使用更多选项初始化对话框,请访问以下网址查看jquery对话框的文档: http : //api.jqueryui.com/dialog/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.