jquery - 快速搜索错误的选择器

标签 jquery jquery-plugins quick-search

我正在使用jquery quicksearch插件来搜索元素列表,但似乎我没有设置正确的选择器。

标记是这样的:

<div id="social-stream" class="dcsns">
<div class="dcsns-content">
    <ul class="stream isotope">
        <li>

                <div class="inner">
                    <span class="section-thumb"></span>
                    <span class="section-text">5 jQuery Responsive Fullscreen Background Image Plugins | jQuery4u</span>
                    <span class="section-user"><a href="https://www.facebook.com/DesignChemical">Design Chemical</a></span>
                </div>

        </li>
    </ul>

</div>

和插件:

$(document).ready(function () {
            $("#id_search").quicksearch("#socialstream .dcsns-content ul.stream isotope li .inner ", {
                noResults: '#noresults',
                loader: 'span.loading'
            });
        });

这是一个fiddle例子 这是 website版本

最佳答案

你的 jQuery 说同位素在 ul.stream 内部,但你的 HTML 却说不然。

关于jquery - 快速搜索错误的选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16712196/

相关文章:

android - 从网络资源中搜索建议到快速搜索框中

javascript - 从 Textarea 中保留和删除特定字符串

javascript - jqGrid数据到HTML5 localStorage

javascript - 使用 jQuery 随机化数字?

javascript - 使用 JQuery 构建快速搜索框

android - Android 快速搜索中的搜索历史记录

jquery - 如何更改 jQuery Mobile 选择菜单的颜色?

javascript - jQuery 同位素 - 样式事件类别

jquery - Fancybox 需要 jQuery 1.3+,发现为 1.2.6。 drupal 中的错误

c# - 在 google maps jquery 插件中定义一个区域