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

Sharovipteryx shared this question 1 year 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?

Comments (2)


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.




That's too bad but thanks for your reply.