【发布时间】:2013-08-10 11:41:15
【问题描述】:
我只想检查一个文本框以打开 Fancybox。
如果文本框为空,那么我希望 Fancybox 工作,否则我只想重定向另一个页面。我该怎么做。
当我点击“内联”然后打开 div 时,我有我的 Fancybox。
<a class="fancybox" href="#inline1">Inline</a>
<div id="inline1" style="width:400px;display: none;">
<h3>Etiam quis mi eu elit</h3>
</div>
但我有另一个带有文本框的按钮,它在我的网页中搜索某些内容。
<form action="/Isim/Arama" method="get">
<input type="text" id="searchedPart" class="searchedName generalTextArea" name="searchedPart" value="">
<input class="searchNameSearchButton" type="submit" value="">
</form>
现在我想要以下
如果搜索到的部分为空
然后显示fancybox
其他
做它现在做的事情
【问题讨论】:
-
打开 Fancybox 的代码在哪里
-
内联 @putvande
-
我是通过控制带有stackoverflow.com/questions/5094233/open-fancybox-from-function功能的花式盒子来实现的
标签: javascript jquery forms get fancybox