Questions tagged as 'html-select'

1
answer

How to populate a select or checkbox dynamically using annotations in the Zend Form ZF 2?

I learned to do this with fixed values, eg: @Annotation\Type("Zend\Form\Element\Select") @Annotation\Options({"label":"Cidade"}) @Annotation\Attributes({"options":{"1":"São Paulo","2":"Rio de Janeiro"}}) However, how do I put these options...
asked by 13.07.2015 / 21:40
3
answers

Is there a better way to insert an option in select with jquery?

I wanted to know if there is a better way to insert option into select with jquery. Example: <select name="municipio_evento" id="municipio_evento"> <option value=""></option> <option value="1">ACEGUA<...
asked by 07.10.2014 / 19:50
1
answer

How to integrate a select into a table?

I have a table . In Plan 1, I used the jQuery HeapBox plugin, however as I'm not good with JavaScript, I did not know how to configure it, I'd like the select heapbox in Plan 1 to have the same effect as the normal select, with the script that...
asked by 02.05.2014 / 01:02
2
answers

When selecting option displays div with

I have a question, since I do not handle anything with PHP , I would like someone to help me with how to mount or implement a Jquery that I found. In my case there are 2 selects , one that would be dubbed Estado and anoth...
asked by 18.05.2015 / 17:18
2
answers

How to remove "disabled" attribute from select parent option?

I need only select the option "Leader", it does not assign "disabled", only in the other selects daughters. The logic is that only one user can be a leader, but when selecting a leader, this option is disabled, and at the time of sending the...
asked by 23.11.2016 / 10:44
1
answer

OnSelectionChanged MVC

Late, How can I do to call the OnSelectionChanged event of a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id = "ddlType", onchange = "onchange()"...
asked by 20.05.2015 / 20:34
1
answer

Search for the title of the option using selec2

I have a select element and I need to search the options not only for the text, but also for the title (or any other attribute), I have already been able to put the title to appear when the element expands, but I can not do a search on it. I'...
asked by 27.11.2015 / 19:28
2
answers

Read a "value" within a "select / select"

How to read options values from a <select></select> using HTML5 + JavaScript? Ex: <select name="tAtividades" id="cAtividades"> <option value="0" selected="selected">Selecione o Tipo</option> <...
asked by 20.11.2015 / 22:16
1
answer

Chained Select: how to use to select Brazilian municipalities in a JSON file from select states

EDITION In the future, someone needs the jQuery version. Here is the code: //select encadeado com JSON $('#uf').on('change', function () { var estado = $(this).val(), cidade = $('#municipio'); $.getJSON('json/municipios.j...
asked by 06.12.2015 / 09:11
3
answers

Select "select" element with jquery

I created on my page a select multiple and I need to get its values in PHP as vector, so I added [] to the end of the name. Example: <select id="selecionados[]" name="selecionados[]" size="20" multiple "> <option value=...
asked by 07.07.2014 / 20:20