Hello I am trying to add a search box and dropdown to my recipes page so that visitors can easily search for the recipe they are looking for. Unfortunately I keep receiving the following error:
public/pages/u7bzf.js: Unexpected token, expected , (6:81)
Here’s my code:
import wixData from ‘wix-data’;
export function iContinent_change(event, $w) {
let searchValue = $w(“#iContinent”).value;
$w((‘#dataset1’).setFilter(wixData.filter().contains(‘collections’, searchValue));
}
export function input1_keyPress(event,$w) {
let searchValue = $w(“#input1”).value;
$w((‘#dataset1’).setFilter(wixData.filter().contains(‘title’, searchValue));
}
Please help! What am I doing wrong?
Dataset name = dataset1
Search bar name = input1
Dropdown name = iContinent
Dataset column name to search = title
Dataset column name for dropdown = collections