Is it possible? already tried through A and option value but precise value with information that I pull from the bank if not the form does not work
Is there a way to put anchor in the select option ???
Is it possible? already tried through A and option value but precise value with information that I pull from the bank if not the form does not work
Is there a way to put anchor in the select option ???
What you can do is trigger an event by selecting a select option, for example;
//monitora alterações no select "#meu-select"
$(document).on("change", "#meu-select", function(e){
if($(this).val() == "1"){
//chama uma função ajax por exemplo que retorna os valores do banco
//minhaFuncaoAjax()
}
//voce pode redirecionar para uma pagina com o resultado
else if($(this).val() == "2"){
location.href = "https://www.google.com.br"
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><selectid="meu-select">
<option>Selecione</option>
<option value="1">Opção 1 (chama função ajax)</option>
<option value="2">Opção 2 (com redirecionamento) </option>
<option value="3">Opção 3</option>
</select>