简体   繁体   English

快速搜索错误的选择器

[英]quicksearch wrong selector

I'm using jquery quicksearch plugin to search through a list of elements but it seems that I'm not setting the correct selector. 我正在使用jquery quicksearch插件搜索元素列表,但似乎没有设置正确的选择器。

The markup is like this: 标记是这样的:

<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>

and the plugin : 和插件:

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

Here is a fiddle example and here is the website version 这是一个小提琴例子,这是网站版本

您的jQuery表示同位素位于ul.stream中,但您的HTML则相反。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM