-1
I have a select with some options to create a filter, what happens is that when I update the select page goes back to the first option. I wish that when I update the page remains with the option I had selected before. It would be possible?
Follow the code below with the creation of select.
<div class="row">
  <div class="col-xs-12 col-md-6 col-lg-6">
    <div class="form-group">
      <div class="input-group">
        <div class="input-group-btn">
          <button class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
            <span id="tipo-filtro">Todos</span>
            <span class="caret"></span>
          </button>
          <ul class="dropdown-menu">
            <li>
              <input data-label="Todos" checked value="all"
                id="tipo-filtro-todos" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-todos">Todos</label>
            </li>
            <li>
              <input data-label="Fornecedor" value="1"
                id="tipo-filtro-fornecedor" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-fornecedor">Fornecedor</label>
            </li>
            <li>
              <input data-label="Cliente Interno" value="2"
                id="tipo-filtro-cliente-interno" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-interno">Cliente Interno</label>
            </li>
            <li>
              <input data-label="Cliente Externo" value="3"
                id="tipo-filtro-cliente-externo" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-externo">Cliente Externo</label>
            </li>
            <li>
              <input data-label="Setor" value="4"
                id="tipo-filtro-setor" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-setor">Setor</label>
            </li>
            <li>
              <input data-label="Principal" value="5"
                id="tipo-filtro-principal" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-principal">Principal</label>
            </li>
            <li>
              <input data-label="Local" value="6"
                id="tipo-filtro-local" type="radio" name="tipo-filtro">
              <label for="tipo-filtro-local">Local</label>
            </li>
          </ul>
        </div>
        <select multiple="multiple"
          class="doNotSelect2 selectmultiple form-control requester_mult_select"
          id="solicitante_os_filtro"
          style="width: 100%;"
          name="solicitante">
        </select>
      </div>
    </div>
  </div>
Yes it is possible, if you have some interaction with a database or use localStorage.
– LeAndrade