How to set up, $item(text1).html on click text same world by element value ?

thank you for your response

I have already implemented this, but actually I want to make text.html a tag, and when the text is clicked only that text is in the search field

Do you have another way for this?