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
-
0
votes1
answer85
viewsTag SELECT is duplicating with Materializecss and Angularjs
Then, I have in a view a select, as the code below: <select ng-model="Dashboard.FiltroChamadas.grupoSelecionado"> <option value="" disabled selected>Selecione um grupo</option>…
-
0
votes1
answer55
viewsIs it possible to capture the index of a selected select?
Simply put, I have a select (combobox) in my html and would like to know which Input (position) has been chosen. that is, if it was the first, the second, the third... The reason is that in my ajax…
-
0
votes0
answers53
viewsdoubt with tag select
I have the following tag select: <!--select--> <div class="uk-form-row"> <div class="uk-grid"> <div class="uk-width-medium-1-2"> <div class="uk-input-group"> <span…
-
0
votes1
answer427
viewsTake the data from a select and declare variable
all right? I am very new to programming and have a simple question that I did not find here on the forum. I have this code below the view (codeigniter): <div class="span6"> <label…
-
0
votes1
answer549
viewsHow to check if a select already has an option selected?
I have a page where there are some selects (representing the functions of users, in which they can be: Leader, Participant or For Knowledge). There are some business rules: 1- If the user is…
-
0
votes1
answer1569
viewsPass value of select to route in Laravel
I don’t know much about web development and I’m a little lost. I need to pass the id of a movie to a route in Laravel and I’m not sure how to get this value. <select class="form-control"…
-
0
votes2
answers581
viewsChanging the contents of a <optgroup> label when selecting an option in another select
I would like to click, for example in the option "10 People"... It changed the label of several other selects, for example, this: "Special Fillings: R$10". I would like, for example, it to become…
-
0
votes4
answers768
viewsAdd mask from a select
Good morning, I’m trying to add a mask to Cpf from a select, but I’m not getting it. HTML <select class="form-control" id="select" style="width:100px;" title="Escolha..." name="select">…
-
0
votes1
answer231
viewsJavascript - Prevent select option smaller than other
Hello. I am making a system for scheduling by time. I have 2 select’s: start and end. I need a function to prevent the end time from being less than the start time + 3. Ex: start = 10, the end…
-
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
answers1091
viewsjQuery: . val() in select only returns the value of the first option
I have a select element in my html page (code below): <section class="calc-tit-desc" id=""> <h3 id="calc-tit">Calculando Para Diarista Por Hora</h3> <p id="calc-desc">Calcule…
-
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
votes1
answer72
viewsplan selector showing value at other imput
//função exibe data de hoje no campo cancelamento var dia, mes,ano; function Data(){ data = new Date(); dia = data.getDate(); mes = data.getMonth()+1; ano = data.getFullYear(); if (dia <10){ dia…
-
0
votes2
answers611
viewsRemove blank select option Angularjs
Good afternoon, I need to remove the blank line that comes as default in the select of Angularjs, I would like to put a default value in place of the blank line. I researched several forums and…
-
0
votes3
answers588
viewshiding component input when selecting a value in the select field
I have a component select which brings the countries from the database <div class="form-group col-md-4"> <label>País *:</label> <select required="required" id="selecionaPais"…
-
0
votes1
answer694
viewsGenerate options from a select (years) according to another selected field
I have a registration form for dependents of a plan, where you can choose son, husband, father-in-law, etc. and then the year of birth He wanted, when selecting what the degree of kinship, he go…
-
0
votes2
answers149
viewsPHP how to let select set
I have a select that takes the data from the database to make an insertion: <div class="row"> <div class="form-group col-md-2"> <label for="marca">Marca</label> <?php…
-
0
votes1
answer460
viewsSelect2 does not work on my pc but works on jsfidle
This jsfidle code works, i.e., shows stylized select and select with input search. <html> <head> <title>TESTE</title> <script…
-
0
votes1
answer669
viewsCreate search box on google Docs
Good, I have this VBA code and needed to build a Javascript for Google Docs that do the same thing. It is possible to convert VBA to Javascript? Thank you. Private Sub CommandButton1_Click() Dim F1…
-
0
votes1
answer66
viewsHow to return to initial value after an event change
I’m with this code: let inicial = 0 let vPag = 3 const numeros = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]; render() function resultadoPag(pagina){ vPag =…
-
0
votes1
answer68
viewsToggle a select and a datapicker
I’m trying to implement a field that can be a select or a datepicker. But when inserting the code into the <div> causes the operation of the datepicker. I keep the code down for anyone who can…
-
0
votes0
answers32
viewsSelect dependendes in php
I’m inserting information into a form and I need my selects to be dependent. In this case, I have two selects, containing status information and from the selected state, the city information will…
-
0
votes1
answer80
viewsChange Javascript iterative select background color
Hey, you guys. I’m having a hard time changing the background color of multiple selects iteratively. I can already change, but I have to manually specify the element index for this to happen. Here’s…
-
0
votes1
answer902
viewsHow to pick up the text of a select with formBuilder? - Angular 6
I would like to take the value of the text and not the value of the select. <div class="form-group col-md-3"> <label for="ProductName">Product Name</label> <select…
-
0
votes1
answer415
viewsPass select Multiple values by ajax
I’m trying to pass the selected values in a select Multiple by ajax but I’m not getting it. When executing my code there is no error, but the values arrive empty to the database. The code below is…
-
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
answer59
viewsHide an element when the screen is in a certain pixel in Javascript
Friends, I would like to hide an element of the page when the screen is on a certain pixel! I got in this format, but when I open screen on the given pixel, the page Showing the element, the element…
-
0
votes1
answer49
viewsScroll through a JS object again after swapping the <option> inside a <select>
I need to scroll through an object again after changing the option in the tag That’s my little object: const data = { "MG": [{ "slug": "belo-horizonte", "nome": "Belo Horizonte", "num": 20 }], "SP":…
-
0
votes2
answers72
viewsExecute request when changing value in a select
I am unable to execute the function when changing the value of select, follow the code below. index php. <div class="input-group m-2"> <!-- Combo Estados !--> <div…
-
0
votes0
answers150
viewsProblems with onChange and ajax
Good morning, I am programming a system in PHP and JS, putting it in the index works normal, but I need to put in a modal and in this the onchange Buga, taking only the value of the first option.…
-
0
votes0
answers47
viewsHow to popular a <select> dynamically?
I’m trying to create a <select>, where when selecting the estado, the even displays the cidades in another field. The estados are coming up to mine controller, however is not displayed in the…
-
0
votes2
answers367
viewsCan’t you use onclick in a select option?
I have a script that when clicking on a specific option would call a function in javascript with onclick, but this script is only working in firefox desktop in other browsers does not work, I’ve…
-
0
votes3
answers647
viewsPopular HTML table from a Combobox
I am with a challenge that for some can be simple thing. On one page I have a combo box / menu select and a table with 3 columns. My goal is this: Once the user has clicked on any option of combo…
-
0
votes0
answers35
viewsShow only 1 record at a time with go to next button
Good night to you all. I would like to: Show records sequentially, (1 at a time), on a web page for a set of more than 100,000 records. I can show all at once, but I would like to only 1 at a time…
-
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:…
-
0
votes1
answer86
viewsHow to validate the field by passing a value through the change method
I’m new to javascript, I would like help with a problem. I managed to make sure that when selecting the value of the first select of "UNIT" the bottom select came with the same value, but as you can…
-
0
votes0
answers344
viewsSet field value Select dynamically in Angular reactive form
I have the following select field: .html <div class="col-md-4"> <div class="mda-form-group"> <select class="mda-form-control" formControlName="state"…
-
0
votes0
answers20
viewsMultiple select comparing two database lists
I need to make a multiple selector in HTML, and the list of items will be loaded from a Mysql table using PHP, however, I want the values that are already in another table to be filled…
-
0
votes0
answers62
viewsSelectedindex does not work
I am validating a small form and can’t do it using the property selectedIndex. Code that is not working: const movimento_loja = window.document.getElementById('movi') function camposPreenchidos() {…
-
0
votes1
answer140
viewsCopy an option from one select to another with jquery
Guys I am trying to copy the options from one select to another using change, but when copying is passing the value of the option I selected and the text of all the options of select at the same…
-
0
votes0
answers64
viewsHow to increase the size of the select dynamically
Speak devs, all right? Is there a way to increase the size of the select according to the number of children it has dynamically? I want all your children to be displayed without having to handle the…
-
-1
votes1
answer47
viewsLeave a specific option selected when using a select
I am generating a select passing some options as shown in the code below select name="listing_search[realty_types][]" - Realty.translated_realty_types.each do |k, v| option value="#{v}" #{k} How do…
-
-1
votes2
answers310
viewsIs it possible to check if an element does not have the style attribute with jquery?
I have an infinite scroll table, need to check if the last <tr> of hers is WITHOUT the attribute style=display:none. It is possible to verify ?…
-
-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
votes1
answer46
viewsPositioning a FORM on the page
I’m trying to put two SELECT MENU next to each other on my page. However, when I put the first it appears, when I put the second and appears in the switched position. If I invert and put the second…
-
-1
votes1
answer395
viewsChange display according to <select> option
I am mounting a Selection Menu where the user selects a month, when the month is selected, a next selection menu is displayed to choose a day. What I need to do now is: when the user selects the…
-
-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…
-
-1
votes1
answer45
viewsFind other select results
Good morning guys! I have a code where I search the registers around the city. Code below: <form name="frmBusca" method="post" class="w3-container w3-center w3-row-padding" action="<?php echo…
-
-1
votes2
answers115
viewsInsert an option in select in a particular Window
I have the following select: <select id="selectChannelCam" class="custom-select"> <option value="" disabled selected>Selecione</option> </select> As you can see, it has only…
-
-1
votes1
answer201
viewsMultiple select saves everything in the bank, how to save only what I chose in select?
I have a select Multiple in my form, what happens is that when I submit the form, it’s saving all Options in the bank, I wanted it to record in the bank only those that I clicked on select Example:…