3
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’d like to leave a select
single out of tables so that when selecting, change them all at once.
Welcome! To be interested in answering, follow the guidelines of this post https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485
– user60252
For each item in the
select
will there be different values in the table? How will these values be defined? It comes from a database? They are calculated by Javascript?– Woss
Anderson, the values can be defined through a Javascript, where when selecting the value "quarterly" for example, in select, it displays the corresponding value that is in js in the table of plans, as shown above
– Igor Bueno
I can leave as an example: https://www.infolink.com.br/hospedagem-sites/
– Igor Bueno