0
I’m wanting to make a system where I would have a datalist
with all my options
and on every page of my site would be mirrored. Example:
<input type="text" name="tCid" id="cCid" placeholder="Insira uma opção" list="cEst" />
<datalist id="cEst">
<optgroup label="Séries Ativas">
<option disabled>Opcao1</option>
<option disabled>Opcao2</option>
<option value="Opcao3">Opcao3</option>
<option disabled>opcao4</option>
<option disabled>Opcao5</option>
</optgroup>
</datalist>
In that case, you’ll get one input
for the user to write an option and select it. Only that I want this one datalist
be unique to all pages on my site. That is, when I take the disabled
of Opcao1
and put value="Opcao1"
, it should update from every page of my site that has that tag datalist
.
Why not do it in a php file?
– Anderson Henrique
I’d rather not do with php @Andersonhenrique
– Lucas Josivan
Angularjs?
– Anderson Henrique
It can be any JS @Andersonhenrique, but you have to help me because I don’t know how it works.
– Lucas Josivan