Questions tagged [select]

Choose" is a frequently employed term utilized for retrieving information. Moreover, 'choose()' serves as a programming function that initiates a code based on file handle or other activities within the system. Avoid utilizing this tag for inquiries pertaining to: HTML <select> tag (favor using [html-select]), language integrated query like LINQ or similar concepts, and so forth.

Angular Material - Header Selection Bug

Trying to implement a Select Header is giving me the error message "Error: md-input-container can only have one child input, textarea or select element!" This is the code causing the issue: <md-input-container> <label>Vegetables</l ...

Choose the Nth option in the dropdown list using programming

Currently, I have a script that dynamically populates a select box with unknown values and quantities of items. I am looking to create another script that mimics the action of selecting the Nth item in that box. Despite my research, I have been unable to ...

How to handle non-selected columns in PostgreSQL using TypeORM with Node.js

TypeOrm "typeorm": "^0.3.11" nodejs/typeorm postgresql doesn't return non-selected column test logs display: query: SELECT "Test"."name" AS "Test_name", "Test"."id" AS "Test_ ...

react-hook-form replaces the onChange function causing delays in updating the value

Recently, I created a unique Select component utilizing useState and onChange. I attempted to integrate this custom component with the powerful react-hook-form. Allow me to share the code snippet for the bespoke Select component. const Select = forwardRef ...

Determine the number of occurrences for every unique row in a MySQL and PHP database

I am currently working with MySQL and PHP. My database has a table with only one column. I can retrieve unique rows using the following query: select distinct id from id_table This would display something like: 1 2 3 5 However, what I really need is t ...

When attempting to retrieve a value from a dropdown menu in HTML using PHP, an undefined index error occurs

Having trouble extracting a value from a select tag in HTML using PHP, as it keeps reporting an undefined index error. Here's my HTML form: <form method="POST" action="proceso.php"> <label for="language">Language</label> <select ...

How to programmatically interact with a dropdown menu without a select element in Python using Selenium

Hey there, I'm currently practicing my skills with Selenium on a practice forum. If you're interested in checking it out, here's the link: click here When you visit the page and inspect the dropdown menu for state and city, you'll notice that it only cons ...

Bypass the typical practice of choosing input with javascript

I have a form with a select input that has a dropdown list of options. The requirement is that when the select input is clicked, I need to validate the form. If the form is incomplete, I want to prevent the select input from showing the option list. Howeve ...

What is the process of activating the select all capability in the material-ui/SelectField component?

Link to Documentation I am currently referring to the provided documentation in order to incorporate the Select-field component. However, I have not been able to locate information on how to implement a "select all" feature within this component. Import s ...

"Discover the step-by-step guide to dynamically generating selects and states in React with the help of Material

Looking to dynamically create Select components based on a list of items? Here's an example: List -> item1, item2 The component : <Select value={this.state."NAME OF THE ITEM ON THE LIST"} onChange={this.handleChange} <MenuItem ...

Tips for resetting input and select values in VUE

In my VUE application, I have an input and a select that are displayed based on the selection of a previous input. When I enter values and change the initial input selection, I hide the second input and select to reset the form. However, even after resetti ...

Choose properties in the Textfield component of material-ui

My Textfield has a bug, how can I ensure that my Maps label is in the center of the dropdown every time and not elevated at the top left corner? Thank you! Check out this screenshot for reference <TextField select ...

I am a newcomer to HTML and I am eager to display the selected options from a <select> element

Can someone help me display the selected licorice flavor, chocolate color, and topping? For example: "Green apple, white, christmas sprinkles." I'm not sure if assigning a numeric value to each option is necessary. I did it on a whim. Please suggest any c ...

The information is not appearing in the dropdown menu

The select tag for chapters is not displaying the result from the query properly. Instead of showing in the select tag, the chapter names are being displayed as echo statements. <!doctype html> <html> <head> <meta charset="utf-8"> ...

Tips for incorporating a visible marker beside the dropdown arrow

When developing my React application with React hooks forms, I have a select component where I need to include a clear indicator 'x' icon next to the dropdown icon. The current select component code is: <Form.Control size="sm" as=&q ...

Issue with navigation using arrow keys in Material UI select dropdown

I am facing an issue with the mui multiple select component where I have added a textfield inside. The problem is that the keyboard arrow up and down list navigation is not functioning properly. Instead, when using the arrow keys onkeydown, it focuses on t ...

Sorting DateTime in MYSQL using PHP

I have stored the date in a MySQL datetime field as shown below: $current_date = date('Y-m-d H:i:s'); It will save the datetime like this: 2012-12-19 14:36:42. Now I need to retrieve the following data using a MySQL query: 1) Get all data tha ...

MUI Multiple Checkbox Select: The dropdown menu must be closed before any other buttons on the page can be clicked

When using MUI Select (Multiple Checkbox), I noticed that all other buttons on the page become unclickable until I close the dropdown. Even in their example page, I found that after opening the dropdown and selecting an item/s, I had to click outside the ...

Adding PHP SQL to a WordPress environment is a great way to enhance the functionality

I am facing an issue with my PHP code which is working fine. However, I need help in converting this code to work in a WordPress environment. I have looked into WordPress SQL but find it confusing. Can someone please assist me in rewriting this code to f ...

Refresh the PHP MySQL table view based on selection changes in the dropdown menu

Hello there! I currently have a table displayed on my page thanks to the following code: $result = mysql_query("Select * from porders, porders_detail, parts where porders.order_no = porders_detail.order_no and porders_detail.om_part_no = parts.om_part_no" ...

Unlocking the Potential of MySQL SELECT: Step-by-Step Guide to Crafting

Suppose I perform a SELECT query using the column alias "b" that does not exist in the table. Will the query create a virtual column? In reality, what I actually want is to include a virtual column within the query itself and manipulate certain data in or ...

Angular dropdown tooltip for overflowing text

Here is the select element in question: <select id="select-full" title="Make selection" class="form-control form-custom input-sm" name="Select" ng-model="form.select" ng-options="select.displayName as select.text for select in selec ...

Two interdependent select fields

I am currently working on creating two select fields where, upon selecting an option in the first field, some options in the second field should be hidden. I have almost achieved this, but my script is unable to locate certain options in the first select f ...

Hazy placeholder in Material UI Select alongside the selected value

In the code snippet below, you can see my Select component. I've implemented a data fetching process and within the useEffect, I am setting the categoryId. However, an issue arises where the placeholder is displayed in the background as shown in this ...

Querying a MySQL database using PDO

After exploring various resources like How to create a secure mysql prepared statement in php?, I am still facing issues. When attempting to select data using parameters for column and table, the returned array is empty. Any suggestions or advice would be ...

Utilizing jQuery to create multiple interactive fields

I am working with a series of divs or inputs that are populated from a JSON file. For example, the structure looks like this: group - groupItem - itemSpec- itemSpec2 { "Group": "groupA", "Item": "groupA-item1", "Spec1": "item1-spec1", ...

Retrieve all chosen option elements from every select element within a form

Hello everyone and thank you for offering your assistance in answering my query. I am currently working on a form that includes 6 select elements all having the "skillLevel" class. I am looking to extract the values of each select element, preferably in a ...

Automate selecting an option from a dropdown using Python with Selenium

I am encountering an issue while trying to choose an option from The error message I'm receiving is: selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable: Element is not currently visible and may not be manipulated ...

AngularJS restricts inputs to be read-only

I'm facing an issue with readonly inputs in AngularJS. I have a select element that changes the values of readonly inputs through a script. However, when I attempt to display these values using ng-model in a table as {{ng-model}}, they don't appe ...

Is there a way to ensure that the elements created by the select form are only generated once?

I have a JavaScript function that dynamically creates paragraph and input elements based on user selection in HTML. However, I am looking to optimize the code so that each element is only created once. Snippet of JavaScript code: function comFunction(sel ...

How can I fetch information from a database and display it in a selectpicker using Laravel?

I am having an issue with my form page and detail page. After submitting data from the form page, it redirects to the detail page. However, I am struggling to display the submitted data in a selectpicker without it appearing twice as shown in the image bel ...

Choosing an option in Angular 2 based on a specific condition

My question is about a select element: <select id="position"> <option *ngFor='#contactType of contactTypes' [attr.value]='contactType.contactTypeId'> {{contactType.description}} </option> </select> I am intereste ...

Clicking on text within a DIV using jQuery

How can I use jQuery to show an "alert" when text inside a DIV is clicked, excluding images and other tags? The texts are contained within various DIVs along with images and tags. Is there a way to achieve this using jQuery? Check out the jsFiddle example ...

Choose the most recent N entries with various values using a single query

Here is the scenario: I have a table with messages where each row consists of id, title, body, city, street, building, and created on. Currently, I am executing multiple queries to select the required messages based on the city, street, and building crit ...

Retrieving the <select> value seamlessly without the need to submit or refresh the page

I'm currently experimenting with a cart functionality but facing issues making it work. I am trying to create a shopping cart where I can update the quantity of each product using a drop-down list (<select>) and have the price updated automatically ...

What is the best way to convert an object into an array of objects for use in a select search functionality

I am attempting to map key and value pairs into a single array in order to use them as selectsearch options. I have successfully mapped each item individually, but now I need to combine all the data into one array. How can I achieve this? Here is how I am ...

Tips for displaying dependent dropdown options in AngularJS

I need assistance with creating a form that includes two select boxes. Depending on the option selected in one select box, specific options should be shown or hidden in the other select box. For example: Select box A Options: Apple Banana Select Box B O ...

When choosing from the dropdown menu, I am unable to assign the desired value as the default option

I am relatively new to Angular, and I'm struggling to figure out what's causing this issue. Currently, I have a message that can be translated using a button, and everything is functioning correctly. As shown in the image, there is a list of languages in ...

Steps to create a personalized value for a column in a MySQL query

During the exam, I am dealing with 2 tables. 1) Post - and its columns : pid : uid : title : content : created date : ... 2) URL alias aid : sou_url : des_url : The purpose of the second table is to store URL aliases for all pages on my website. I have ...

Tips for selecting an <select> option value based on an URL parameter automatically

I have a 2-step form where I am successfully passing the first name in the URL from step 1 to step 2, but I am struggling to do the same for a select field. Here's an example of what I have: In the URL: ?firstname=Bob Form Field: <input type= ...

PHP PDO prepared statement with SELECT query for insertion

This task is quite challenging for me. I've prepared the following "insert into" statement for Postgres using PHP PDO. $sql = "INSERT INTO mytable (zuordnung_id,spielgen_id,spielvor_id) VALUES ( :zuordnung_id, ...