-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6780a7a
commit b4a29db
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ <h1>Search.js tutorial</h1> | |
<p class='myFAQs'> FAQ answer 4<p> | ||
</code></pre> | ||
|
||
<p>All right ! You're halfway through ! Next import search using <pre><code class="language-html"><script src="https://unpkg.com/[email protected]/search.js"> </script></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"><script src="https://unpkg.com/[email protected]/search.js"> </script></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 : | ||
|