警报框/弹出框中的组合框 [英] combobox in alertbox/popup

查看:71
本文介绍了警报框/弹出框中的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,请帮助寻找解决此问题的方法.

我需要显示带有组合框的popupwindow以及如果我在组合框中选择某个值并按按钮的popupwindow,则它应该使用javascript或ajax显示另一条警报消息.

例如: http://attachments.techguy.org/attachments/92897d1164709788/pm_combo.jpg [ ^ ]

Dear friends please help in finding solution for this issue.

I need to show popupwindow with combobox in it and ones if i select some value in the combobox and press the button then it should show another alert message using javascript or ajax.

ex : http://attachments.techguy.org/attachments/92897d1164709788/pm_combo.jpg[^]

推荐答案

您好,您不能使用Alert来显示和控制其中的内容...

但是,您可以改用任何Javascript/JQuery模型弹出式插件,并将下拉菜单放到弹出式窗口中.
我已经实现了一个jQuery模型弹出插件,该插件可能对您有用..

阅读本文:实施J-Query Model Popup插件并在模型弹出窗口中播放FLV文件 [
Hi, you can not use Alert to show and control inside that...

However you can use any Javascript/JQuery model popup plug-in instead and put your drop down inside popup..

I have implemented a jquery model popup plug-in which can be useful to you..

Read this article : Implementing J-Query Model Popup Plug-In and Playing FLV file in a model popup[^]


In the article there is a jQuery plugin called model-popup.js.. you can use it as shown below..

step 1 : Reference Popup plug-in

<script type="text/javascript" language="javascript" src="resource/jquery-1.2.6.min.js"></script>

<script type="text/javascript" language="javascript" src="resource/model-popup.js"></script>



第2步:创建弹出式容器



Step 2: Create Popup container

<a id="YourButton">Click Here to open model popup</a>

<div class="popupDiv">
<div>
<asp:DropDownList id="DropDownList1" runat="server">
   <asp:ListItem value="value" >Text</asp:ListItem>
</asp:DropDownList>
</div>
<div class="close">
<a class="lnkOk">OK</a></div>
</div>



第3步:调用弹出式插件



Step 3: Call Popup Plug-In


(文档).ready(功能() {
(document).ready(function() {


(" ).click(功能() {
("#YourButton").click(function() {


这篇关于警报框/弹出框中的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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