Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimeTheFirst authored Feb 24, 2022
1 parent 6780a7a commit b4a29db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>Search.js tutorial</h1>
&lt;p class='myFAQs'&gt; FAQ answer 4&lt;p&gt;
</code></pre>

<p>All right ! You're halfway through ! Next import search using <pre><code class="language-html">&lt;script src="https://unpkg.com/[email protected]/search.js"&gt; &lt;/script&gt;</code></pre> if you haven't before. Since search works in javascript , add some script tags to your page to activate the search .Inside the script tags , call the following function anywhere. </p>
<p>All right ! You're halfway through ! Next import search @1.0.1(1.0.2 does not work) using <pre><code class="language-html">&lt;script src="https://unpkg.com/[email protected]/search.js"&gt; &lt;/script&gt;</code></pre> if you haven't before. Since search works in javascript , add some script tags to your page to activate the search .Inside the script tags , call the following function anywhere. </p>
<pre><code class="language-js">search(searchElemClass,inputIdOrClass)</code></pre>

<p>The searchElemClass argument should have the common class of the elements that have to be searched through. In our case the id is myFAQs .Therefore the first argument should be :
Expand Down

0 comments on commit b4a29db

Please sign in to comment.