[Vuejs]-Hide value of Multipart Option Form – Vue

-1👍

Well currently you are saying if level is 1 and higher than 1 show. I think you meant to say this https://jsfiddle.net/cckLd9te/4655/?

<select v-model="newPsu" multiple="true">
      <option v-if="level == 1">Level 1</option>
      <option v-if="level > 1" v-for="option in provinsiOptions" v-bind:value="option.text">
        {{ option.text }}
      </option>
      <option v-if="level > 2" v-for="option in kabupatenOptions" v-bind:value="option.text">
        {{ option.text }}
      </option>
     </select>

Leave a comment