Live demos
These are real searches, running on this page with the plugin's own script. These two search as you type. Try a passage (John 3:16), some words (so loved the world) or a Strong's number (G26).
With no setup
<div class="st-search" data-search-on-type="true"></div>
Suggestions as you type
Every search suggests as you type, once you pause: type Joh or Rom and a list of books and words opens under the field (arrow keys and Enter, or a click, pick one). This one looks only for passages, so its suggestions are the books:
<div class="st-search" data-kinds="reference"></div>
A "Show more" button instead of scrolling
<div class="st-search" data-more="button" data-limit="5"></div>
The field and the results apart
<div data-st-input="apart" data-search-on-type="true"></div>
<div data-st-results="apart"></div>
The results can sit anywhere else on the page:
With your own callback
ScriptureTips.search({
input: "#field",
results: "#results",
onSelect({ result }) { /* your code */ },
});
Nothing picked yet.