2
With jQuery, how do I change the label of an option, not value, example:
<select id="meuSelect">
<option>[nao_selecionar_esse label]</option>
<option>[SELECIONAR_esse label]</option>
<option>[nao_selecionar_esse label]</option>
</select>
Would you have more options within select? Which event would trigger this change? Try to be more specific about what you need to ask the question
– Darlei Fernando Zillmer
Yes, I tried that way var typePagtos = "[ALTERAR_ESSSE_LABEL]" $("#typofaturaPagtos"). val(typofaturaPagtos). change(); But it checks value, not label.
– ElvisP
Post everything as you tried, working with jquery and options is complicated so, even more if you have more options and need to take a specific value to mark, otherwise you could have answered that you can use text() instead of val()...
– Darlei Fernando Zillmer