Setting the html property sets the text and styling of the text element. Any text that the element already contained is replaced.
Getting the html property returns the element’s text, including HTML tags.
$w("#yourElement").html = "<b>Bold Text</b>";
To set or get the plain, unstyled contents of a text element, use the text property instead.
Just assign it to your input field’s value
$item(text1).text = $w('#firstName').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?