<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									jQuery - show or hide elements based on text input - BugOverflow				            </title>
            <link>https://muszak.eu/community/bugoverflow/jquery-show-or-hide-elements-based-on-text-input/</link>
            <description>muszak.eu Forum dyskusyjne</description>
            <language>pl-PL</language>
            <lastBuildDate>Sun, 07 Jun 2026 23:59:27 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Odpowiedź na: jQuery - show or hide elements based on text input</title>
                        <link>https://muszak.eu/community/bugoverflow/jquery-show-or-hide-elements-based-on-text-input/#post-879</link>
                        <pubDate>Mon, 19 Jul 2021 08:37:10 +0000</pubDate>
                        <description><![CDATA[html
&lt;input type=&quot;text&quot; id=&quot;place-search&quot; /&gt;
 &lt;ul&gt;
		&lt;li class=&quot;place-object&quot;&gt;
			&lt;p&gt;Place 1&lt;/p&gt;
		&lt;/li&gt;
		&lt;li class=&quot;place-object&quot;&gt;
			&lt;p...]]></description>
                        <content:encoded><![CDATA[<p>html</p>
<pre contenteditable="false">&lt;input type="text" id="place-search" /&gt;
 &lt;ul&gt;
		&lt;li class="place-object"&gt;
			&lt;p&gt;Place 1&lt;/p&gt;
		&lt;/li&gt;
		&lt;li class="place-object"&gt;
			&lt;p&gt;Place 2&lt;/p&gt;
		&lt;/li&gt;
		&lt;li class="place-object"&gt;
			&lt;p&gt;Place 3&lt;/p&gt;
		&lt;/li&gt;
		&lt;li class="place-object"&gt;
			&lt;p&gt;Place 4&lt;/p&gt;
		&lt;/li&gt;
 &lt;/ul&gt;</pre>
<p>jquery</p>
<pre contenteditable="false">$("#place-search").keyup(function (){
	let query = $(this).val();
	let pattern = new RegExp(query,"i");

	$('.place-object').filter(function() {
		if(!$("p",this).text().match(pattern))
			return true;
		$(this).show();
	}).hide();
});</pre>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/jquery-show-or-hide-elements-based-on-text-input/#post-879</guid>
                    </item>
				                    <item>
                        <title>jQuery - show or hide elements based on text input</title>
                        <link>https://muszak.eu/community/bugoverflow/jquery-show-or-hide-elements-based-on-text-input/#post-878</link>
                        <pubDate>Mon, 19 Jul 2021 08:35:03 +0000</pubDate>
                        <description><![CDATA[example]]></description>
                        <content:encoded><![CDATA[<p>example</p>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/jquery-show-or-hide-elements-based-on-text-input/#post-878</guid>
                    </item>
							        </channel>
        </rss>
		