Most voted "html-select" questions
The HTML selection widget (<select>) represents a user interface control that displays an options menu. The options within the menu are represented by elements <option>, whose values are determined by its attribute "value".</option></select>
Learn more…161 questions
Sort by count of
-
1
votes2
answers9250
viewsHow to mount a select by taking information from the database
I’d like to ride a select with database information using Mysqli, whereas the value, will receive information from my cod_usuario and the information that will be displayed is the column nome.…
-
1
votes2
answers13354
viewsHow to take the value dynamically from a select
Hello guys can someone give a force in this problem I caught? Since I’m not very good in javascript. To want to take the value of a select dynamically and according to the selected select do a…
-
1
votes2
answers1489
viewsAsp Classic - Keep option select apos post on page
Guys, I need some help. I have the following select HTML Techo <select id="lstTransacao" name="lstTransacao"> <option value="null">Todos</option> <option…
-
1
votes1
answer359
viewsTwo selects with the same script
I have a select that uses a script to fill the city field, through the selected state. The problem is that I need to add another select and when I add, only a select works. <script…
-
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
votes0
answers63
viewstext-indent without working on Edge in a select type element
I applied a text-indent to a select, which works on all current browsers except Edge. Have you ever experienced this problem? some solution? Follow the code: .form-control select{ width: 22.4%;…
-
1
votes3
answers995
viewsDisable all Dropdownlist Options s less what is selected
How to disable all options of a combo minus the selected value using Jquery. As in the image below: Follow the HTML in the image: HTML <!DOCTYPE html> <html> <body> <select>…
-
1
votes0
answers68
viewsSelect inside a button does not work in Firefox
I have a select inside button as follows: <button type="button" class="btn btn-primary" id="l_ns" data-toggle="button"> Choose the N to be stage <select id='n_selector' class="btn…
-
1
votes1
answer139
viewsHow to use the select form on the html page
I need to know what the user has chosen within a <select>. In the code below I need to know the code of the collection chosen by the user, to show the items that have not yet been collected.…
-
1
votes1
answer194
viewsSelect component with ng-model, relationship between tables
I have a select component <div class="form-group col-md-4"> <label>Município:</label> <select ng-model="distrito.entidade.id.municipio.id.nome" class="form-control" >…
-
1
votes1
answer265
viewsSelect more than one item in select or something similar Angularjs
I need to select more than one option in my select or something like it, there is this possibility? <select ng-model="modelcompraevenda.filial" class="form-control" > <option…
-
1
votes1
answer168
viewsSelect component with an Angular request
I have a select component <select class="selectpicker" data-live-search="true"> <option data-tokens="distrito">Distrito</option> <option…
-
1
votes1
answer109
viewsSelect Multiple with Material Design Lite
How to make a <select multiple> with the CDM? I looked at the website but found nothing. I saw that the Angularjs has it but not the use in the project…
-
1
votes0
answers45
viewsHow popular a runtime combobox
As popular a combobox (Select) when clicking on another combobox, for example I have a combobox with 3 options when selecting an option it recharges the other with the options referring to the…
-
1
votes3
answers1167
viewsHow to make language selector
I have a website and need to put a language selector on it, when the user selects the flag corresponding to the desired language to be redirected to a specific url. <select>…
-
1
votes2
answers501
viewsText alignment problem within select and input
I’m having trouble defining the style of inputs and selects. The text is misaligned/cut, according to the figures below (first image in Chrome and the second image in IE, in Mozilla is equal to…
-
1
votes0
answers7
viewsHow to place a Raddiobutton as Checked on the Razor Page
I have the following question, I want to leave this radiobutton as checked, but it is not checked, I tried to put checked(true), but it does not work, follow the code: @Html.Radiobuttonfor(m =>…
-
1
votes2
answers59
viewsHow do I delete previous value using javasript
I’m trying to develop a selection of information, where in the end will form the product code, as the image below. But when choosing the fields it adds, but if you need to change, does not delete…
-
1
votes1
answer143
viewsHow do I stop when an option is disabled in select, jquery detects that action (deselect)?
I have a problem when I uncheck an option on a particular select. I cannot make the select option, when unchecked, return to its initial state, that is, how to reset. So, I thought Jquery detect…
-
1
votes3
answers484
viewsDisable DATE Input After selecting Select option
I need to leave disabled the field "ultimoDiaTrab" and only enable it, when on Select is selected "PARTIALLY worked" option #2. <div class="form-group" style=" margin: 0 auto;"> <div…
-
1
votes2
answers737
viewsFilter select fields using other selects with Ruby on Rails
Good afternoon, I have a problem to solve here in my application. The problem is to filter the select HTML "Solution" field, based on the values of the other selected fields above it. The image…
-
1
votes0
answers344
viewsSend selected data in an External Json list to email (Fipe Table Query)
$(document).ready(function() { var urlBase = "http://fipeapi.appspot.com/api/1/carros/"; $.getJSON(urlBase + "marcas.json", function(data) { var items = ["<option value=\"\">ESCOLHA UMA…
-
1
votes2
answers35
viewsSelect does not select the correct value
I have the following problem: <select name="cargo" id="selectCargo" class="form-control show-tick maiuscula" required > <option value="">ESCOLHA A EMPRESA</option> <c:forEach…
-
1
votes1
answer285
viewsHow to separate and manipulate select data with js
I have a forum with a field select which has many options to select, I would like to divide these options by forum area in two select. All areas and sub-areas are in a single select. Example:…
-
1
votes1
answer475
viewsDynamic Select/Option filter
var escolas = ["UFSCAR", "USP"]; //var alunos = []; $(document).ready(function() { escolas.forEach(function(item) { $('select.lista-escola').append('<option>' + item + '</option>'); });…
-
1
votes1
answer63
viewsHow to know the current position of an element in the <option>
<!DOCTYPE html> <html> <body> <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option…
-
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…
-
1
votes1
answer93
viewsAngular: Connect multiple fields to a reactive form
The problem is that I have several select Multiple and when I select some options from a select they are added to Reactiveform correctly, but when I select some option from another select they are…
-
1
votes1
answer53
viewsTextarea Characters break line when submitting to database
I have a form with a field SELECT and by submitting the text in the database, it breaks the line, even copied and pasted directly from the table record in the notepad and is even broken, in the HTML…
-
1
votes1
answer481
viewsSelect 'select' through Puppeteer
I need to select a value within a <select>, but I’m not succeeding... I once did that same function of selecting a value in a <select> but this time I’m not getting to make that…
-
1
votes2
answers382
viewsRun JS function when user choose Select
I have a select in html, and I want it to run a function when the user chooses any option. I appreciate the help. <select id="frmOperadora0" name="frmOperadora"> <option…
-
1
votes1
answer82
viewsSelect with different behavior on mobile
I’m making a script (I don’t know if it’s the best way, I’m beginner). Script behavior: The behavior of the script is as follows: There is a select asking how many pizzas you want, when answering I…
-
0
votes1
answer74
viewsrecover data in a list for editing
On an edit page of the registration data, how to fill a select with the information originally saved. Ex. In the registration form, it was selected in a select, a city. After saving, there is option…
-
0
votes2
answers3966
viewsI need to put a button next to an input of type select, how to do?
I need to put a button next to a select type input. My code: <div class="form-group col-md-2"> <label for="inpIdPortador">ID Portador:</label> <select class="form-control"…
-
0
votes1
answer1898
viewsHow to disable <option> according to <option Selected>?
I have a list of users and each of them will have one or more functions (example: Leader, For Knowledge, Participant). If I choose the "Leader" option, the other options (from the same select)…
-
0
votes2
answers213
viewsHow do select go back to the initial state after "deselect"?
How to make sure that when I unselect a specific select option, it goes back to "initial state"? Here’s a simulation of my problem: https://jsfiddle.net/andrealbson/o1xs3m8x/…
-
0
votes0
answers115
viewsTake the value of a select_tag and put it into a variable
I want to take the value of this select_tag and put it in the link_to message <%= select_tag(:testee, options_for_select(CloneDatabaseController.find_all_models)) %> <%= link_to('Click…
-
0
votes1
answer438
viewsSelect related to another select, pulling data from the database
I need to create a form that pulls the options from the sql database. So far so good, I did a while inside a query in php; echo '<SELECT NAME = "setor">'; while ( $temp =…
-
0
votes1
answer117
viewsHow do I edit the scroll bar of a select tag?
<select id="select"> <option value="week"> Previsão Semanal</option> <option value="daily"> Previsão Diária</option> </select> I have this code here and in css…
-
0
votes0
answers173
viewsHow to maintain state of a select?
It can be in jquery or Angularjs help. I have the following picklist (done in hand): <div class="form group"> <label class="control-label col-md-3">Selecionar Empresas:</label>…
-
0
votes1
answer514
viewsText break within select html Options
I’m trying to break the text into the option or simply decrease the size of the modal (dropdown) of the select, but I can’t. Has anyone made it? how to proceed in this, I’m stuck with system in…
-
0
votes0
answers109
viewsList of all Material Icons
Good morning, you guys! I am creating a form with SELECT where OPTION is Material Icons: <option data-icon="case" value="case">case</option> <option data-icon="favorite"…
-
0
votes1
answer44
viewsHow to create "options" in Select from a spreadsheet?
I wonder if it is possible to generate options dynamically in the selection by C#? For example, I have my selection : <select id="Selecao_itens" multiple="multiple" runat= server size="3"…
-
0
votes1
answer733
viewsSelect empty without appearing in the list
all good? I have some questions about the HTML tag select. Could you put it without a preselected option without it appearing in the list? all the examples I found there is always at least one item…
-
0
votes1
answer77
viewsPopulate html select with database values
Good morning, I’m a beginner in php and I’m creating a personal project to register people. I have a screen that lists all users and when clicking change user, it returns the values of the user in…
-
0
votes1
answer47
viewsSelect does not update table data after selecting an option
I am trying to select the field with this query however the value of select is changed but does not reload the table values, showing all. But by clicking with the mouse, it works.…
-
0
votes1
answer32
viewsHow to recover a data with Select2 in the registry edition?
Follow the code of Lade, when I go to edit mode the corresponding data does not appear and yes Lect2 is empty. <select name="cliente_id"> <option value=""></option> @foreach…
-
0
votes0
answers25
viewsHow can I change an HTML page dynamically?
Good morning! I am creating an html page, which will serve to make feedback, that is to say to report specific situations or under certain conditions ask for help. It turns out that this page…
-
0
votes1
answer51
viewsShow in select database results
I’ve researched this before and I could never get a code that works. When I put the code on, nothing gets a single option. I wanted a code that could see the data in a select Code that I’m using:…
-
0
votes3
answers2364
viewsHow to assign "Selected" to a dynamic option?
I’m populating a SELECT from a JSON received via AJAX as follows: $.each(parsedData, function(i, produto) { $('select#produtos').append(…