I work in a shop selling esigarettes. We have over 200 different flavors. I’ve put everyone in a database and customers should be able to search for taste. It searches when you press the search button. But I want it to also apply when the customer presses the enter key. I can very little about code and what I have now I have taken from youtube. Can anybody help me? I’m stuck my head in the wall with this problem … This is the code I have now:
import wixData from ‘wix-data’;
export function searchField_click() {
wixData.query(‘allJuiceSmak’)
.contains(‘description’, $w(‘#searchInput’).value)
.or(wixData.query(‘allJuiceSmak’).contains(‘title’, $w(‘#searchInput’).value))
.find()
.then(res => {
$w(‘#repeater1’).data = res.items;
});
}