Most voted "html-option" questions
21 questions
Sort by count of
-
7
votes1
answer135
viewsHow to insert style into a Zend_form_element_select element?
How can I insert a style in one element option using Zend_form? I’m using Zend Framework 1.
-
5
votes3
answers2742
viewsIs there a better way to insert an option in select with jquery?
I was wondering if there’s a better way to insert a option in the select with jquery. Example: <select name="municipio_evento" id="municipio_evento"> <option value=""></option>…
-
5
votes1
answer482
viewsHow to select an option in select in a less laborious way?
I have a page called editarpublicacao.php who receives the id through GET. One of the two <select> for example contained on the page, is similar to that of companies: <select name="company"…
-
3
votes1
answer528
viewsValue attribute of options in select are not set correctly
I need to go through an element select on a page HTML placing the elements option within it. I can already do that, the problem is that in the attribute value of those option should receive the…
html ajax angularjs html-select html-optionasked 8 years, 9 months ago Giancarlo Abel Giulian 3,999 -
2
votes2
answers903
viewsCopy a selected option from a select Multiple to another select Multiple with jquery
I want to copy a option or more options’s selected from a select multiple to another select multiple with jquery. <select id='cursos' multiple> <option selected>curso 1</option>…
jquery html-select html-option selecteditemasked 10 years, 1 month ago Diego Filipe Pedro Santos 531 -
2
votes2
answers346
viewsSearch in mysql database with multi-level php
I’m trying to perform the following query in the database, through an html form, only in php I’m only able to fetch all the data from my table. In case the user would choose the type of filter and a…
-
2
votes4
answers487
viewsIF condition according to option field selection
I’m new to programming, I’m having a problem with my code: var micro = "Micro Inversores"; if (micro.equals(document.getElementById("tipo_unidade"))) { var tipo1 = 1; else var tipo1 = 0.8; }…
-
1
votes2
answers424
viewsPass Mysql <option> values
Guys I’m having a hard time to perform a Submit of a specific field in case the <select> with 3 <option>. When I get the field to enter some data in the database it does not bring the…
-
1
votes1
answer60
viewsHow to make optgroup access a page
I have a code and I want it to work as follows: I created a list of options within a optgroup and I want as soon as I click on an option, it go to the page I want. Example: <optgroup>…
-
1
votes1
answer81
viewsHow to make a javascript function run correctly with <option> and <select> tag?
I’ve tried anyway and can’t get the javascript function compute 3 execute correctly. The result comes out with only one decimal and does not obey the option selected. Detail: the code needs to be in…
-
0
votes3
answers18253
viewsStylization of Option via CSS
did some Select and within them there are Options. I tried styling Option, only I’m not getting it, I’m doing something wrong? HTML: <div class="imobSelect"> <select>…
-
0
votes2
answers585
viewsCompare 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, only I am also passing another variable and would like to compare this variable with the values of…
-
0
votes1
answer56
viewsUse the same datalist for multiple pages
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"…
-
0
votes1
answer59
viewsHow do I pass a javascript value 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"…
-
0
votes2
answers2339
viewsClear selected option from a select with jQuery
I am with a form with radio Buttons, and when I select the radio Buttons it will appear/ hiding the fields I want. So far so great, but if I select an option on and then change radio button, that…
-
0
votes3
answers459
viewsIs there a specific event in Javascript to detect when a <option> of a <datalist> is selected?
In Javascript, it is possible, through the onchange, oninput and related, detect if a certain input is amended. Example: var qs = function (el) { return document.querySelector(el); }…
-
0
votes2
answers1495
viewsTake the values of all select options with jQuery
I have this <select> which is generated dynamically <select id="select_exemplo"> <option id="exemplo"> <option id="exemplo" value="10">teste 1 </option> <option…
-
0
votes1
answer57
viewsSelect an option with external button
Good afternoon, everyone, I need that when I press a button, the same cause a specific option is selected on select. For example, I own 3 buttons and 3 buttons options:…
-
-1
votes1
answer23
views<Option> inside <Select> selected by default based on variable passed by URL
I want the course select to have the value(course) selected by default when the user accesses the page by the link. <html lang="pt-br"> <head> <meta charset="utf-8"> <meta…
-
-1
votes2
answers1681
viewsHelp with COMBOBOX, Select cities according to chosen state
I am programming a php application and I have all the states and cities of Brazil in the Mysql database. In the table States have: id, nome, uf. In the table Cities have: id, nome, id_estado. I…
-
-2
votes1
answer50
viewsinteract with Select option dynamically via javascript
I think this is already very simple, but unfortunately, the simplest is the most complicated for me to understand. lol my goal is simple and summarizing it further, make sure that when you select a…