

Hello there! I was exploring WixCode example on Recipe/Review and kind of adopting it to my website. Of particular interest was the ‘Add a Review’ Light box where a user can post a review on a recipe or a product etc… But, every time I try to ‘Add review’ in the Preview mode I’m getting a ‘Typeerror’ on the console. It says ‘TypeError: $w(…).onClick is not a function’ . (See below) I’m guessing this refers to following lines in the code as it doesn’t allow me to select a star. $w.onReady(function () { // set star events and init the stars for (let i=0; i < 5; i++) { $w(starsId[i]).onClick(starClick(i)); $w(starsActiveId[i]).onClick(starClick(i)); $w(starsId[i]).onMouseIn(starHover(i)); $w(starsActiveId[i]).onMouseIn(starHover(i)); } showSelectedStars(); $w("#reviewsDataset").onBeforeSave(reviewsBeforeSave); $w("#reviewsDataset").onAfterSave(reviewsAfterSave); }); What is weird is that it was working perfectly fine last night, it only started showing this erro…