Open czhang03 opened 6 years ago
Is it possible to search in subelement? I currently have code like this
<li class="search-item"> <a><img class="image"/></a> <div class="image-description">this is the description</div> </li>
I want to search in the .image-description with hightlight.
.image-description
I can think of the following way:
<li class="search-item"> <a><img class="image"/></a> this is the description </li>
But this way makes formatting really hard.
Is there a way to do it?
You can add attribute to LI e.g. description="this is the description" then use the attribute option when you init plugin
Is it possible to search in subelement? I currently have code like this
I want to search in the
.image-description
with hightlight.I can think of the following way:
But this way makes formatting really hard.
Is there a way to do it?