Questions tagged as 'html-option'

2
answers

Clear selected option from a select with jQuery

I have a form with radio buttons, and when I select the radio buttons it will appear / hide the fields I want. So much for beauty, but if I select an option on and then mute the radio button, that field will add, but does not clear the value...
asked by 09.06.2017 / 15:29
2
answers

Compare 2 variables in a select with Angular

Hello, I have an array of objects that I am pulling from the database and playing in a Select HTML, but I am also passing another variable and would like to compare this variable with the BD array values and if they are same as set the option. I'...
asked by 03.05.2016 / 13:12
1
answer

How do I pass a value from javascript to PHP?

I have a select that lists all my players: <select name="jogador" id="cod_jogador"> <option name=""></option> <?php foreach($jogadores as $jogador): ?> <option id="codigo" value="<?= $jogador['cod_...
asked by 10.08.2017 / 20:17
1
answer

Use the same datalist for multiple pages

I'm trying to make a system where I would have a datalist with all my options and every page of my site would be mirrored. Example: <input type="text" name="tCid" id="cCid" placeholder="Insira uma opção" list="cEst" /> <...
asked by 17.07.2017 / 04:22
3
answers

Option Styling via CSS [closed]

I made some Select and within them there Options . I tried to stylize the Option, but I'm not getting it, am I doing something wrong? HTML: <div class="imobSelect"> <select> <option>Todos</option> &...
asked by 25.03.2014 / 02:19
2
answers

Help with COMBOBOX, Select cities according to chosen state

I'm programming an application in php and I have all the Brazilian states and cities in Mysql bank.    In the States table I have: id , nome , uf .       In the Cities table I have: id , nome , id_estado ....
asked by 18.01.2018 / 21:26