在默认对话框中添加一个文本框(弹出)。 [英] Add a textbox in the default dialog box (pop up).

查看:86
本文介绍了在默认对话框中添加一个文本框(弹出)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在对话框的末尾添加一个文本框,所以我这样就实现了这个

Hi,

I want to add a text box at the end of the dialog box, so I have achieved this like this

$(".LASERAction").dialog({
autoOpen: false,
height: 450,
width: 600,
modal: true,
buttons: {
Ok: function () {
//My Submit code
}
}
});



var textBoxHTML ='


var textBoxHTML = '

< input type =textclass =form-control InteractionTextid =InteractionFinalText/>
<input type="text" class="form-control InteractionText" id="InteractionFinalText" />

'

$(。ui-dialog-buttonpane)。prepend(textBoxHTML);

当我实现这个时,文本框会在我使用对话框的所有地方添加。

但我的要求是我想将此文本框添加到我的应用程序的一个场景中,这意味着我在几个地方使用了对话框,但只需要在一个地方添加。



有没有选项

'
$(".ui-dialog-buttonpane").prepend(textBoxHTML);
When I have implemented this the text box is adding at all the places wherever I am using the dialog.
But my requirement is that I want to add this text box to only one scenario of my application, means that I have used dialog box at several places, but need to add at only one place.

Is there any option

$(".LASERAction").dialog({
});


此方法中的
,以便我们可以在我们需要的任何地方添加自己的代码。



谢谢。


in this method so that we can add our own code to the dialog wherever we needed.

Thanks.

推荐答案

(。LASERAction)。对话框({
autoOpen:false,
身高:450,
宽度:600,
模态:true,
按钮:{
确定:function(){
//我的提交代码
}
}
});
(".LASERAction").dialog({ autoOpen: false, height: 450, width: 600, modal: true, buttons: { Ok: function () { //My Submit code } } });



var textBoxHTML ='


var textBoxHTML = '

< input type =textclass =form-control InteractionTextid =InteractionFinalText />
<input type="text" class="form-control InteractionText" id="InteractionFinalText" />

'


(。ui-dialog-buttonpane)。prepend(textBoxHTML);

当我有实现这一点,文本框在我使用对话框的任何地方添加。

但我的要求是我想将此文本框添加到我的应用程序的一个场景中,意味着我有在几个地方使用了对话框,但只需要添加o新的地方。



有没有选项

(".ui-dialog-buttonpane").prepend(textBoxHTML);
When I have implemented this the text box is adding at all the places wherever I am using the dialog.
But my requirement is that I want to add this text box to only one scenario of my application, means that I have used dialog box at several places, but need to add at only one place.

Is there any option


(。 LASERAction)。对话框({
});
(".LASERAction").dialog({ });


此方法中的
,以便我们可以在我们需要的任何地方将自己的代码添加到对话框中。



谢谢。


in this method so that we can add our own code to the dialog wherever we needed.

Thanks.


这篇关于在默认对话框中添加一个文本框(弹出)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆