2021年5月5日星期三

Display 'You searched for X, Y and Z. when search input and form selections made [closed]

I would like the text 'You have searched for' to display if ANY of the form fields are populated. So either the search box OR the select menus OR the checkbox is selected.

I can get this to work on one element but not if ANY of the elements are populated. Can someone help to work out the logic for this, please?

<div>    <ul class="yousearchedfor">      <li v-if="search_input" class="yousearchedforfor">        You searched for      </li>      <li v-if="search_input">              </li>      <li v-if="A"></li>      <li v-if="B"></li>      <li v-if="C"></li>      <li v-if="D"></li>      <li v-if="E"></li>      <li v-if="F"></li>      <li v-if="G"></li>    </ul>    <h5 class="left" v-if="resultCount">      Showing  results    </h5>  </div>  
https://stackoverflow.com/questions/67372006/display-you-searched-for-x-y-and-z-when-search-input-and-form-selections-made May 03, 2021 at 11:55PM

没有评论:

发表评论