Questions tagged as 'html-option'

1
answer

How to insert style into a Zend_Form_Element_Select element?

How can I insert a style into a option element using Zend_Form? I'm using Zend Framework 1 .     
asked by 20.01.2014 / 20:47
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

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
2
answers

Search mysql database with php with multi-level

I am trying to perform the following query in the database, through an html form, but in php I am only able to fetch all the data from my table. In case the user would choose the type of filter and would be made a query in the database, I am usi...
asked by 18.05.2015 / 17:48
1
answer

How to select an option in select less laborious way?

I have a page called editarpublicacao.php which receives id through GET . One of the two <select> for example contained in the page, is similar to that of the companies: <select name="company" data-plac...
asked by 29.09.2017 / 17:43
1
answer

How to make a javascript function run correctly with option and select tag?

I've tried it anyway and I can not get the javascript compute3 function to run correctly. The result is only one decimal place and does not obey the option selected. Detail: The code must be in pure javascript . If anyone can help I am imme...
asked by 02.06.2018 / 20:33
2
answers

Copy a selected option from a select multiple to another select multiple with jquery

I want to copy a option or more selected options from a select multiple to another select multiple with jquery. <select id='cursos' multiple> <option selected>curso 1</option> <option selected>...
asked by 08.10.2014 / 00:50
2
answers

Pass values from the JQuery Mysql option

I'm having a hard time submitting a specific field in the case of <select> with 3 <option> . When I get the field to insert some data into the database, it does not have the value, but rather the Undefined or Object info...
asked by 30.12.2015 / 13:54
1
answer

How to make the 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 it as soon as I click on an option, it goes to the page I want. Example: <optgroup> <option>Opcao1</option...
asked by 13.07.2017 / 01:02
3
answers

Is there any specific Javascript event to detect when a datalist option is selected?

In Javascript, it is possible, through onchange , oninput and related, to detect if a certain input is changed. Example: var qs = function (el) { return document.querySelector(el); } qs("#input").addEventListene...
asked by 09.05.2018 / 14:46