I have code that looks like
<label class="city"></label>
that uses javascript to indicate the selected city. So when "Anchorage" for example is selected from a dropdown at the top of the page
<label class="city"></label>
displays "Anchorage". I need to use this selected city in a channel entry loop. I've tried doing this using Stash, as in the code below, but it is not working. Is there any way to save the city in a form that can be used by Expressionengine?
{exp:stash:set_list name="city2" parse_tags="yes" trim="yes"}
{stash:city3}<label class="city"></label>{/stash:city3}
{/exp:stash:set_list}
{exp:stash:get_list name="city2" parse_tags="yes" trim="yes"}
{exp:stash:parse unprefix="nested"}
{exp:channel:entries channel="place" search:city="{city3}" dynamic="no"}
{title}
<br />
{if nested:no_results}
No results
{/if}
{/exp:channel:entries}
{/exp:stash:parse}
{/exp:stash:get_list}