-1
Someone could assist me on how I can change the information that is in blue in the image below, according to the selection of the select (monthly, quarterly, semi-annual and annual).
I need you to change the product value and link button
:
The code I have is this:
<select class="select-ciclos" name="select" onchange="document.getElementById('selecionado').innerHTML = '' + this.value;">
<option value="<sup>R$</sup><span>9,99</span>/mês" selected="selected">Mensal</option>
<option value="<sup>R$</sup><span>28,77</span>">Trimestral -4%</option>
<option value="<sup>R$</sup><span>54,14</span>">Semestral -8%</option>
<option value="<sup>R$</sup><span>99,99</span>/ano">Anual -16%</option>
</select>
<div id="selecionado" class="price"><sup>R$</sup><span>9,99</span>/mês</div>
However, this way that I have, it stays only in one of the tables.
I would like to leave a single select outside the tables so that when selecting, change them all at once.
using
innerHTML
=)– MarceloBoni
Marcelo, I’m already using, but I want a help to separate a single select for all value fields.
– Igor Bueno
It’s not working anymore?
– Isac
Post your javascript
– MarceloBoni
No js. Only onchange="Document.getElementById('selected'). innerHTML = '' + this.value;"
– Igor Bueno
Possible duplicate of Change information according to select
– Woss