Send hidden value to a select

1

Is there any property in select that when I select an option when sending it send another? For example:

<form action="teste.php">
  <p>
    <select name="mes" id="mess" class="selectpicker">
      <option>Janeiro</option>
      <option>Fevereiro</option>
      <option>Abril</option>
      <option>Março</option>
    </select>
  </p>
  <label>
    <button id="enviark" class="btn btn-default">Gerar Linha do tempo</button>
  </label>
</form>

For example, if I select January it sends 1 instead of January

    
asked by anonymous 11.12.2014 / 18:18

1 answer

3

Hello,

Use VALUE as the OPTION attribute ... this way:

  <option value="1">Janeiro</option>
    
11.12.2014 / 18:27