Upvote 1

Is there a way to bold or highlight the specific search terms in a search result ?

Answered Sharovipteryx 7 years ago

I've built a search function using an input field and a data list however I've had some trouble highlighting/bolding specific search terms in the search results. For example if I type the word 'house' in the input field the data list filters on the word 'house'. I've made the filtered results that contain the word house in the data list bolded but not the specific word 'house'. How would you target that word specifically rather than all of the text?

Replies (2)
photo
1

Hi there,


Unfortunately it's not possible to change the style of individual text in a data list - you'll only be able to change the style of the entire rows or columns of the data list.


Best,

Danielle

photo
1

That's too bad but thanks for your reply.

Leave a Comment
 
Attach a file