Dropdown & Button Elements Not Working

Hello. New here. I’d like users/members to be able to search my dynamic page by selecting TAGS from a drop down element (days of the week; configurations) so they can narrow down the displayed content. Eventually, I’d like to include price(range) as well.

I watched the WixFix video and applied his code (below) to my site but when the search button is clicked, nothing happens. I double checked the element names but found no errors. I even attempted to reconstruct the video’s exact set-up and still the search button did nothing. It appears a handful of other people have this issue as well.

The following is the code I’m using; any thoughts?


import wixData from ‘wix-data’ ;

export function searchButton_click ( event ) {
search ();
}

function search ( ){

wixData . query ( "ArtistProfiles" ) 
. contains ( "daysOfTheWeek" ,  String ( $w ( "#dropdown1" ). value )) 
. and ( wixData . query ( "ArtistProfiles" ). contains ( "configurationsAvailable" ,  String ( $w ( "#dropdown2" ). value ))) 

. find () 
. then ( results  => { 
    $w ( "#profileRepeater" ). data  =  results . items ; 
    $w ( '#searchButton' ). hide (); 
    $w ( '#resetButton' ). show (); 
    $w ( '#resetButton' ). enable (); 
}); 

}

export function resetButton_click ( event ) {
$w ( ‘#artistProfiles’ ). setFilter ( wixData . filter ());
$w ( ‘#dropdown1’ ). value = undefined ;
$w ( ‘#dropdown2’ ). value = undefined ;
$w ( ‘#resetButton’ ). hide ();
$w ( ‘#searchButton’ ). show ();

}