Questions tagged as 'html-select'

1
answer

How do I not select select an option already selected in another select?

How to make select not allow that the option "Lider" is not duplicate , because in my business rule only one user can be a leader . I thought of the following: Assuming I have 3 selects. If I select one of them as LEADER , and select...
asked by 29.11.2016 / 18:12
1
answer

Value attribute of options in select are not set correctly

I need to loop through a select element on a HTML page by putting the option elements inside it. The problem is that in the attribute value of these option should receive the identifiers coming from the databas...
asked by 02.02.2016 / 18:41
1
answer

How do you have at most one selected leader in all selects?

How do I when I select the Leader option , javascript does not allow another function to be selected (multiselect)? The scenario is as follows: Each select represents the roles of each user. The user who is selected as Leader , can n...
asked by 30.11.2016 / 03:45
2
answers

Search field inside select box how to do?

I would like to know if there is any way to put a search field inside a select box, for example ... I have a selectbox with +3000 thousand items registered, there arises my need to have a search field to streamline the user side. In the...
asked by 16.09.2015 / 06:35
6
answers

How to mount the HTML of a "select" via PHP, using data coming from the DB

I'm having trouble rightly mounting a <select> within PHP, with data returned by mysqli . I tried this way: <?php $con = new mysqli("localhost", "root", "senha","bancodedados" ) or die (mysql_error()); $query = $...
asked by 01.07.2014 / 19:36
2
answers

Multiple attribute of tag select does not work

Attribute multiple of tag <select> does not work, you can only select a single option. I'm using Chrome. <h4>From</h4> <div> <select name="sites-list" size="7" multiple> <o...
asked by 19.12.2014 / 22:49
1
answer

Trigger Onchange in select - javascript

Hello, I have a project, and I need to select other items in a select, but it seems very simple, but I was surprised by the difficulty I'm having in doing it. I have tested so far: Selecione um carro da lista<br> <select id="mySelect...
asked by 16.11.2015 / 23:31
3
answers

Add a title to the SELECT tag (without the "selected disabled" option) without it appearing in the options?

How do I add a title to select as it appears in the options and adds when it is selected? I know it looks like a duplicate, but the problem is that I did not find what I would like exactly, the selected disabled option works but...
asked by 03.04.2018 / 17:35
4
answers

Convert a Select with 2 option in HTML to 2 buttons

Context:    Daily access to a website several times during the day, which before actually entering, in addition to informing user and password, I have to select the type of access between the existing 2, I think it is bad to have to select...
asked by 31.03.2016 / 15:54
2
answers

Angularjs ng-options: Use object property as value instead of array index

In the code below, AngularJS ng-options renders the value but records the position in the array and not the value. I get the following json: [{"iduniforme":1, "nomeuniforme":"Uniforme 5 itens", "itensuniforme":[{...},{...},{...},...
asked by 18.06.2015 / 16:20