Problems listfilter only in certain css class
<p>I'm new to jQuery and need help. I got this code, that works fine:</p>

<pre><code>&lt;script&gt;
    (function ($) {
        // custom css expression for a case-insensitive contains()
        jQuery.expr[':'].Contains = function(a,i,m){
            return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())&gt;=0;
        };

        function listFilter(header, list) { // header is any element, list is an unordered list
            // create and add the filter form to the header
            var form = $("&lt;form&gt;").attr({"class":"filterform","action":"#"}),
            input = $("&lt;input&gt;").attr({"class":"filterinput","type":"text"});
            $(form).append(input).appendTo(header);

            $(input).change( function () {
                var filter = $(this).val();
                if(filter) {
                    // this finds all links in a list that contain the input,
                    // and hide the ones not containing the input while showing the ones that do
                    $(list).find("a:not(:Contains(" + filter + "))").parent().slideUp();
                    $(list).find.hasClass(Lot) + ("a:Contains(" + filter + ")").parent().slideDown();
                } else {
                    $(list).find("li").show();
                }
                return false;
            }).keyup( function () {
                // fire the above change event after every letter
                $(this).change();
            });
        }

        //ondomready
        $(function () {
            listFilter($("#header"), $("#list"));
        });
    }(jQuery));
&lt;/script&gt;

&lt;/head&gt;
    &lt;body&gt;
        &lt;div id="wrap"&gt;
            &lt;h1 id="header"&gt;List of countries&lt;/h1&gt;
            &lt;ul id="list"&gt;
                &lt;li&gt;
                    &lt;p class="Lot"&gt;1001&lt;/p&gt;
            &lt;p class="Desc para-style-override-1"&gt;
                        KARMAPA. Tibet, 19./20. Jh. H 14,8 cm.&lt;br&gt;Bronze.
                        Sitzender Lama in dhyanasana auf Lotosthron. Mit seiner rechten Hand 
                        ruft er die Erde als Zeugin an, während die Linke in Meditationsgestus 
                        ein Wassergefäss hält. Gewand mit eingraviertem Blumendekor.
                    &lt;/p&gt;
            &lt;p class="Footnote para-style-override-1"&gt;
                        Carl Laszlo collection, Basel.
                    &lt;/p&gt;
            &lt;p class="LotEst para-style-override-1"&gt;CHF 1 000.- / 1 500.-&lt;/p&gt;
            &lt;p class="Est2 para-style-override-1"&gt;(€ 830.- / 1 250.-) &lt;/p&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;p class="Lot"&gt;1002*&lt;/p&gt;
            &lt;p class="Desc para-style-override-1"&gt;
                        KLEINER AMITAYUS. Tibetochinesisch, 18./19. Jh. H 11 cm.&lt;br&gt;Bronze.
                        Der Buddha des ewigen Lebens sitzt in der Lotoshaltung auf einem 
                        Doppellotosthron. Fein gestaltetes Gesicht. Unverschlossen. Min. besch.
                    &lt;/p&gt;
            &lt;p class="LotEst para-style-override-1"&gt;CHF 500.- / 800.-&lt;/p&gt;
            &lt;p class="Est2 para-style-override-1"&gt;(€ 420.- / 670.-)&lt;/p&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
</code></pre>

<p>I only want to filter numbers within <code>p class="Lot"</code> but show the whole <code>li</code>.</p>

<p>I tried with <code>.hasClass</code>, but it didn't work. Thanks for any help.</p>
