I need to make choice the city with refresh content without reload the page.
When city choosen, I replace content for the slideshow in jquery, and run the snippet:
$('#slider_wrapper').replaceWith('<div id="slider_wrapper">[[!slider?&city=`'+$(this).text()+'`]]</div>');
but snippet does not see jquery variable $city
Another strange happens. Snippet does not see the variable $ city, but echo $city displays the name of the city.
When I send to snippet the city as a text value, all works fine. But I’d like do it dynamicaly.
$('#slider_wrapper').replaceWith('<div id="slider_wrapper">[[!slider?&city=`London`]]</div>');
I tried did it via cookie, save cookie in jquery and open it in snippet. But snippet does see new cookie value only after page reloaded.
Could anybody help me?
I use revo 2.0.8