用是/否按钮确认框 [英] Confirm box with yes/no buttons
本文介绍了用是/否按钮确认框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在搜索javascript中的确认框,是,没有按钮,并且我找到了答案.
如果有人知道答案,请帮助我.
在此先感谢
I am searching for confirm box in javascript with yes no buttons and i dint find my answer.
Please help me out if anyone knows the answer.
Thanks in advance
推荐答案
尝试以下操作:
Try this:
(& amp;#id& amp; quot)).dialog({ 纽扣: { & amp; quot;是& amp; quot ;: function(){}, & quot; No& amp; quot ;: function(){} } });
("#id").dialog({ buttons: { "Yes": function() {}, "No": function() {} } });
在jQuery确认框中添加是和否按钮 [ ^ ]
使用jQuery是或否确认框 [
Add Yes and No buttons on jQuery confirmation box[^]
Yes or No confirm box using jQuery[^]
Hope this will help you.
亲爱的朋友,
函数text_fun()
{
如果(确认(输入您的文本"))
{
动作();
}
}
此Javascript函数将为您提供帮助.
Dear Friend,
function text_fun()
{
if (confirm("Enter Your text"))
{
Action();
}
}
This Javascript function will help you.
这篇关于用是/否按钮确认框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文