模态对话框中的jQuery UI自动完成组合框 [英] jQuery UI autocomplete combobox in a modal dialog

查看:142
本文介绍了模态对话框中的jQuery UI自动完成组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用自动完成组合框 http://jqueryui.com/demos/autocomplete/#模式对话框中的组合框.但是,每当我单击(组合框的)向下箭头时,都会引起刷新,导致模态窗口关闭.

I want to use a autocomplete combobox http://jqueryui.com/demos/autocomplete/#combobox within a modal dialog. However whenever I click on the down arrow (of the combobox) it causes a refresh that results in my modal window closing.

如何停止刷新? (我对jQuery还是陌生的)

How do I stop the refresh from occuring? (I am still new to jQuery)

我正在使用UI 1.8和jQuery 1.4.1.

I am using UI 1.8 and jQuery 1.4.1.

推荐答案

好吧,我通过从组合框周围删除了表单标签来解决了自己的问题

Ok I fixed my own problem by removing the form tag from around the combobox

这篇关于模态对话框中的jQuery UI自动完成组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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