Questions tagged as 'option'

2
answers

How to do in a select html, when clicking select more than one row at a time?

I have a query that brings me the first 3 letters of the name of a month with the last two digits of the year for example: JAN.16 in my combobox it brings me months independent for example: JAN.16 FEV.16 ... and on and on. I wanted the combob...
asked by 08.06.2016 / 17:39
1
answer

How to customize a Select in columns?

Personal I have a select that shows CODE | TITLE | DESCRIPTION | UF 0001 | TESTE1 | NEW ITEM 1 | SP 0002 | TESTE2 | NEW ITEM ADD 2 | SC
asked by 01.05.2016 / 23:35
1
answer

Bring selected based on database values

Ihaveanemployeeregistrationscreen,whenIeditapersonIcannotgetsettheoptionthatisregisteredinthebank.obs.theoptionscomefromthebankandnotfromthehtmlform.ForexampleIhaveapersonwhoisregisteredas"sales" plus when I edit it list as "accounting" which w...
asked by 18.06.2016 / 00:17
2
answers

Change select (ajax + php) element value with innerHTML

Hello, I'm doing the famous combo of state charges city. Everything is working perfectly, as I debugged in my script, until the moment it should change the value of select (options returned from the function). Here is my code (index.php): <...
asked by 17.02.2017 / 20:59
2
answers

How to get the value of some select item when clicking on it

In the font given below, the logic fails to capture the click on the select element returning only the first option , and so it appears to be an index problem - selectedIndex . Observe : function selecionar(l...
asked by 10.05.2018 / 17:47
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

Display content of the "title" attribute next to the option element

I have an image thumbnail set in option of select . I would like the script to automatically insert the caption, for each of these images in select , based on the attribute in> title . The example of what I've...
asked by 19.05.2018 / 23:18
1
answer

Real size auto fit of the select via option available

I usually search and do not disturb the patience of the members here, but this time I specifically need an example. See: <!DOCTYPE html> <html> <body> <select id="lista" size="4"> <option value="A">...
asked by 10.05.2018 / 03:48
1
answer

Referencing OPTION in javascript

Next: I have to enter the name and price and status data, depending on the state it calculates the icms. I wanted to make it depending on the OPTION that I select it calculate automatically, with the if's and else's. but I'm not sure if I'm refe...
asked by 10.11.2018 / 21:41
1
answer

Select hide / show DIVs according to the selected value (jquery)

I have a select and some divs like this: <select name="numerounidades" id="numerounidades"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4"&g...
asked by 08.05.2018 / 17:42