Can I block a value in a SmartSelect? -Puedo bloquear un valor en un smartSelect?

Hello there.
I wonder if I can block a value in a SmartSelect.
Let´s say I have an smart select whit this items : Honda, Citroen and Ferrari
I want to show all of then but Ferrari will be alaways check, in other words you can not change to Honda or Citroen , the value checked will be always Ferrari
How I can do it?

Hola.
Me pregunto si puedo dejar bloquedao el valor de un smart select.
Digamos que tengo un smartSelect con estos tres items : Honda, Citroen y Ferrari.
Quiero que se muestren los tres pero que Ferrari sea siempre el seleccionado, es decir que no se pueda cambiar a Honda o Citroen, Ferrari siempre se mostrará seleccionado
Alguien sabe como hacerlo?

pada bloquear un smartselect agrega la clase disabled al elemento A y para usar otro elemento seleccionado agregale la prop selected

 <a class="disabled item-link smart-select smart-select-init">
<option value="melon" selected>Melon</option>
          <li>
            <a class="disabled item-link smart-select smart-select-init">
              <select name="fruits">
                <option value="apple">Apple</option>
                <option value="pineapple">Pineapple</option>
                <option value="pear">Pear</option>
                <option value="orange">Orange</option>
                <option value="melon" selected>Melon</option>
                <option value="peach">Peach</option>
                <option value="banana">Banana</option>
              </select>
              <div class="item-content">
                <div class="item-inner">
                  <div class="item-title">Fruit</div>
                </div>
              </div>
            </a>
          </li>

1 Like