Most voted "option" questions
27 questions
Sort by count of
- 
		6 votes3 answers688 viewsHow 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 a month name with the last two digits of the year for example: JAN.16 in my combobox it brings me the independent months for example: JAN.16… 
- 
		4 votes1 answer819 viewsHow to customize a Select in columns?Guys I have a select that shows CODE | TITLE | DESCRIPTION | UF 0001 | TESTE1 | NEW ITEM 1 | SP 0002 | TESTE2 | NEW ITEM ADD 2 | SC See that the column is disfigured, I would like to align this with… 
- 
		3 votes4 answers949 viewsChange select element value (Ajax + php) with innerHTMLHello, I’m doing the famous combo of state carries city. Everything is working perfectly, as I will debug in my script, until the moment that must change the value of select (options returned from… 
- 
		3 votes1 answer2002 viewsWhat is Java 8 Optional for? How to use it?What is the use of Optional Java 8? How to use this feature? The best answers I found on the site were these... What is the difference between the orelse() and orElseGet() methods of… 
- 
		2 votes1 answer904 viewsBring Selected based on database valuesI have an employee registration screen, when I edit a person I can not bring set the option that is registered there in the bank. Obs. options come from the database and not from the html form. for… 
- 
		2 votes1 answer347 viewsChange the HTML attribute in the option with JQUERYI’m trying to change the value of the select with the option to "disabled" but only when the user clicks the input field. See the image to understand better: I want to exactly leave disabled the… 
- 
		1 votes1 answer158 viewsRedirect through the option value and keep the option selectedI need to redirect according to the "option" value and keep this "option" selected after redirect. I can redirect through this code: $(function() { // bind change event to select… 
- 
		1 votes1 answer914 viewsSelect 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… 
- 
		1 votes1 answer421 viewsFull size auto select adjustment via option availableI normally research 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"… 
- 
		1 votes2 answers267 viewsHow to get the value of a select item by clicking on itIn the font shown below, logic fails to capture the click on the element of select returning only the first option, and from the looks of it is an index problem - selectedIndex. Observe: function… 
- 
		1 votes2 answers246 viewsDisplay contents of the "title" attribute next to the option elementI have a thumbnail set of images on option of select. I would like the script automatically enter the caption for each of these images in the select, based on attribute title of tag option. The… 
- 
		1 votes1 answer81 viewsHow to make a javascript function run correctly with <option> and <select> tag?I’ve tried anyway and can’t get the javascript function compute 3 execute correctly. The result comes out with only one decimal and does not obey the option selected. Detail: the code needs to be in… 
- 
		1 votes1 answer94 viewsReferencing OPTION in javascriptNext: I have to enter the name and price and status data, depending on the state it calculates the icms. I wanted to make sure that depending on the OPTION I select it calculated automatically, with… 
- 
		0 votes1 answer166 viewsHow to select the value option returned with jQuery?This variable Uf data. me returns the acronym of the states. Ex...: SC How I make a loop with jQuery to select the date-symbol correlately to the variable Uf data.? <select id="billing:region_id"… 
- 
		0 votes3 answers14234 viewsRemove options from select with jQueryI’m trying to take out all the option's of a select I have, but I’ve used up all the code of the jQuery but they don’t come out. I’m making a filter where the person will select a city and after… 
- 
		0 votes2 answers101 viewsHow to mark options in ajax return?I have an array of ids and I’m returning this array in the ajax response. How to compare this array with the select options and mark the option if it matches the array index? In PHP, we use the… 
- 
		0 votes0 answers39 viewshow to format the select option when hovering overHow do I use css to leave the selected option with a certain color when hovering over?? <select> <option>werwe</option> <-- quero deixar esse cara em laranja ao selecionar… 
- 
		0 votes1 answer113 viewsOpen javascript with Select OptionI’m wanting to open Check() and open it when the select option is pressed. <select> <option href='javascript:;' onchange="abrirVit();" value="canto">Vitória - Praia do… 
- 
		0 votes2 answers2732 viewsEvents tagged with <select><option>I’m trying to make a page with html+javascript, but I don’t know anything about php... Anyway, my question is this! I have created an options box, and when the user selects a certain option, I want… 
- 
		0 votes1 answer694 viewsGenerate options from a select (years) according to another selected fieldI 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 answers1008 viewsReturning select value with javascript/jqueryI am developing a software and I need to know which option the user selected and return in the console.log, but I have tried several functions and none worked. How do I get that return? function… 
- 
		0 votes3 answers68 viewsselected optionI have a code that returns data from the database in an option, but I cannot make q the value registered in the database is selected. For example, the option will bring all registered neighborhoods… 
- 
		0 votes1 answer159 viewsoptions in html inputin html there is a property called SELECT and also the INPUT and I would like to make a INPUT with options equal to SELECT but how can I do that? the code I used: <!DOCTYPE html> <html… 
- 
		-1 votes2 answers173 viewsHow to make multiple values into a single option and retrieve themI want to know how to make a list with a specific tab "|" and define more than one value in select-option and recover in Javascript with a split("|") for a variable, something like: <select… 
- 
		-1 votes4 answers2232 viewsSelect option selectedI need to leave the select option selected according to the field saved in mysql. The form is to edit so it displays the fields available with foreach. Ex: <select name="segurado" > <option… 
- 
		-1 votes1 answer95 viewsSelect in optionI have a screen of accounts to pay, and when I edit the data, in the option field is appearing the name of the provider (Liquigas), So far so good. But when I click on the list, the name of the… 
- 
		-2 votes1 answer31 viewsAdd values in the field by pressing the 'enter' key and reset these values with the 'reset' button in JavascriptWhat do you say? How can I add values in the field by pressing the 'enter' key instead of clicking the 'add' button and how to reset these values within the 'select' button with the 'reset' button…