Questions tagged [listbox]

This innovative feature within the graphical user interface enables users to effortlessly choose one or several items from an extensive list.

Customize default key bindings for functions in tkinter Listbox

I have designed a listbox feature and I am seeking to adjust the functionality of the Left and Right arrow keys. Currently, these keys are programmed to navigate horizontally within the listbox, but I want them to move up and down the list instead. How can ...

When items are removed client-side, the Listbox becomes null

Given a Web Forms project inherited by me, I am relatively new to the field of Web development. The page in question features 2 listboxes: lstCaseLoad, containing "Caseloads" (ID numbers), and lstAssignedCaseLoad, filled with Caseloads chosen by the Form U ...

Select the initial item in a listbox by default using JQuery

I am receiving JSON response from the controller and using jQuery to populate a listbox. How can I set a default item to be selected in the listbox? Below is my code snippet: if (response.Assets.length > 0) { var list = []; for (var key ...

Effortless JavaScript function for retrieving the chosen value from a dropdown menu/select element

I've figured out how to retrieve the value or text of a selected item in a dropdown menu: document.getElementById('selNames').options[document.getElementById('selNames').selectedIndex].value In order to simplify this code, I've created a function called ...

I'm puzzled as to why implementing jQuery UI autocomplete on my dropdowns is also affecting my listbox

I have been attempting to update my comboboxes to utilize autocomplete, so I found this code (which worked beautifully for my dropdown menus) The problem arises when I also have a listbox on the same page with the following code: <%= Html.ListBox("Car ...

Decide whether a ListBox item in ASP.NET has been chosen by leveraging the power of jQuery

I have the following unique jQuery function that will loop through all the elements of my ASP.NET ListBox. It is triggered when clicked: $('#<%=MyListBox.ClientID %>').children("option").each(function () { } The functionality of this function shou ...

Displaying selected values in a Multi Select Listbox upon submission of the same form when an error occurs

When the page is first loaded: Retrieve the values from the table field and store them in a variable If the field is blank, do not take any action Populate the listbox with default custom values When the form is submitted (on the same page) and multipl ...

How can I retrieve the selected items from a Listbox control?

Currently, I am working on an ASP.NET application using C#. One of the features in my project involves a Grid View with a Listbox control. The Listbox is initially set to be disabled by default. My goal is to enable and disable this control dynamically bas ...

Is it possible to conceal an arrow in a typical dropdown menu?

Is it possible to conceal the arrow in a standard dropdown select fieldset? Check out this Fiddle for more information I am working on an autocomplete feature where users input an organization number and relevant information is fetched from a database. I ...