Skip to main content

All Questions

Tagged with
0 votes
2 answers
717 views

How to change the spacing of the options of a select using CSS only?

I have a dropdown using select/option, but I have a variant that have a span with an icon before the select tag, so I have to add a padding for the select to 'push' the placeholder in order to fit the ...
diegosampaio's user avatar
0 votes
1 answer
59 views

Save Dropdownlist value to database

I have a table with two columns containing dropdownlist, the second dropdownlist is populated based on the first dropdownlist selected value. Now i want to save the second dropdpwnlist selected value ...
user3309231's user avatar
0 votes
1 answer
91 views

Can onChange's event read only the inner tag's value?

I have a Select dropdown that listed some MenuItems, but now I want to add a ListSubheader. I am having issue grabbing the event.target.value from my MenuItem because I have to wrap them in a div tag, ...
mrwuscience's user avatar
0 votes
2 answers
65 views

How do I change the background color of the main cell of a html dropdown?

To put it very simple, I want to change the background color of the main field (not sure what else to call it, it's the field marked in red in the example) of a HTML element. I do not want to change ...
Anna Madsen's user avatar
0 votes
1 answer
434 views

Select2 triggering change event

I, not so long ago, went ahead and built an html dependent dropdown which pulls it's data from an array in the js. The dependencies worked perfectly fine until I realized that I needed to add a search ...
Cruxer's user avatar
  • 21
0 votes
0 answers
37 views

Angular dropdown image

i have array where we have image but when i call in html they dont show it but in inspect they show it <div class="dropdown" *ngFor="let in of counter(inputCount); let ind = index&...
Android Dev's user avatar
0 votes
0 answers
41 views

Select HTML element on hover

I am trying to insert in a form a select tag similar to this: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select The only thing thing that I would like to make different from the usual ...
istvan weisz's user avatar
0 votes
0 answers
509 views

Can i write dropdown menu without using select element

I want to know if its okay to use <div> and <button> elements instead of using <select> and <option> in React and make the <button> elements controlled. I want to ...
Aymen's user avatar
  • 1
0 votes
0 answers
127 views

How to made select option selected in react js / javascript

I should have dropdown with 2 options, and based on a configuration option one should be selected with an event handler in JavaScript. I tried the below code : const $select = document.querySelector('#...
Varalakshmi SBV's user avatar
0 votes
1 answer
84 views

How to set a default dropdown value using Javascript?

I am trying to display forms based on the dropdown selected. But, by default, I am able to see all the forms listed one below other. Only if I click on the particular dropdown, I am getting the ...
Bhar's user avatar
  • 1
-1 votes
1 answer
60 views

Looking for a more elegant way to assign a "selected" attribute to a previously chosen <input> element

I'm creating a simple CRUD app with PHP. On the create page, there's a dropdown menu that allows the user to select what type of highway they're entering info for. On the update page, I'd like the ...
nedhaskins's user avatar
0 votes
2 answers
1k views

Google Web App Dynamic Dependent Dropdown

I've been trying to add 3rd and 4th level dependent dropdown using the code from Code with Curt(https://codewithcurt.com/create-dependent-drop-down-on-google-web-app/), but I'm running into some ...
coders_key's user avatar
0 votes
1 answer
354 views

How to set selected value for multiple dropdown

I'm populating multiple dropdowns with the same data. How do I set the selected value from the array below for each iteration? const arraylist = ['Tom', 'Joe', 'Bill']; const iterable = ['Mark', 'Jill'...
ForALLs's user avatar
  • 27
0 votes
1 answer
385 views

How to bind a value from select-options to the file that will be uploaded

The UI contains the options of documents from which user will select an option. I want to bind the fileType to the image that will be uploaded through the input tag. I am getting the value of the ...
Rushabh Gandhi's user avatar
1 vote
1 answer
394 views

Unable to set default selection in select item

I bring data from the server and try to add a product and give it the appropriate category, I manage to add the product, but in the UI for a start I am not shown the first category Instead, it shows ...
Opal David's user avatar

15 30 50 per page
1
2 3 4 5
13