All Questions

963
votes
24answers
1202517 views

How to style a <select> dropdown with CSS only without JavaScript?

Is there a CSS-only way to style a <select> dropdown? I need to style a <select> form as much as humanly possible, without any JavaScript. What are the properties I can use to do so in CS...
196
votes
10answers
521982 views

How to get multiple selected values of select box in php?

I have a html form which has a select list box from which you can select multiple values because its multiple property is set to multiple. Consider form method is 'GET'. The html code for the form is ...
147
votes
4answers
452393 views

Binding WPF ComboBox to a Custom List

I have a ComboBox that doesn't seem to update the SelectedItem/SelectedValue. The ComboBox ItemsSource is bound to a property on a ViewModel class that lists a bunch of RAS phonebook entries as a Col...
81
votes
21answers
119808 views

How to display default text "--Select Team --" in combo box on pageload in WPF?

In a WPF app, in MVP app, I have a combo box,for which I display the data fetched from Database. Before the items added to the Combo box, I want to display the default text such as " -- Select Tea...
85
votes
6answers
305834 views

how to bind a list to a combobox? (Winforms)

I want to connect a binding source to a list of class objects and then objects value to a combo box can anyone suggest how to do it public class Country { public string Name { get; set; ...
150
votes
19answers
636731 views

ComboBox: Adding Text and Value to an Item (no Binding Source)

In C# WinApp, how can I add both Text and Value to the items of my ComboBox? I did a search and usually the answers are using "Binding to a source".. but in my case I do not have a binding source read...
86
votes
22answers
129674 views

Professional jQuery based Combobox control?

Are there any professional Combobox controls (dropdown list with autosuggestion) based on the jQuery library? It should be able to handle large datasets and have some skinning options. A multi-column...
134
votes
9answers
457637 views

How to pass parameters on onChange of html select

I am a novice at JavaScript and jQuery. I want to show one combobox-A, which is an HTML <select> with its selected id and contents at the other place on onChange(). How can I pass the complete...
42
votes
5answers
21106 views

Can I use a different Template for the selected item in a WPF ComboBox than for the items in the dropdown part?

I have a WPF Combobox which is filled with, say, Customer objects. I have a DataTemplate: <DataTemplate DataType="{x:Type MyAssembly:Customer}"> <StackPanel> <TextBlock Tex...
40
votes
5answers
107259 views

ComboBox SelectedItem vs SelectedValue

The following code works as you’d expect — MyProperty on the model is updated when the user picks a new item in the dropdown. comboBox1.DataBindings.Add("SelectedValue", myModel, "MyProperty", tr...

Previous Next