972 questions
1
vote
0
answers
67
views
Datalist Not Working To Select Dropdown in Rails
I'm trying to replace awesomplete with straight HTML 5.0 using datalist.
I have the datalist generated by a partial that new/edit uses:
<%= tag.datalist( options_for_select(Client.order(:city)....
3
votes
1
answer
1k
views
How to use datalist on iOS Safari?
I have an issue about how iOS Safari handles datalist.
The following code works fine on all desktop browsers.
<!DOCTYPE html>
<html>
<body>
<form action="">
&...
1
vote
0
answers
173
views
Getting data attributes from HTML input element with a datalist
I'm working on extending the input element to use the nice datalist autocomplete functionality, but restrict only to the elements in the datalist, much like a select. Problem is I need the data ...
0
votes
1
answer
111
views
DataList in ASP.NET Cancel Edit - How to get back to the item that was edited
The cancel event of a DataList has the following code
protected void Cancel_Command(Object sender, DataListCommandEventArgs e)
{
ItemsList.EditItemIndex = -1;
BindList();
...
0
votes
0
answers
36
views
Can't get dropdown to appear after creating entity
I just wanted to be able for a user to select from a dropdown if their id number was a ssn or ein.
I created a Farm entity and I wanted the user to select from a dropdown using Datalist whether or not ...
1
vote
1
answer
67
views
ASP.NET Datalist Paging Index Error 'Index -6 is negative or over number of rows.'
When I click the btn_Last button I get this error:
System.IndexOutOfRangeException: 'Index -6 is negative or over number of rows.
Whenever I change the pagesize value, the value I change is the same ...
0
votes
1
answer
86
views
Error in Obj.length>0 in Datalist Validation
I have a script and i was running it over a website through tempermankey. The script is basically inserting a datalist in an input field and changing the other input value based on datalist selected ...
0
votes
0
answers
89
views
React dynamic Datalist - Options are not populated via api response
Please find the issue below.
Initially data will be empty array, so the loading option will be displayed in data list. But when the datalist is clicked, an api call will be made to get the data. Once ...
0
votes
1
answer
129
views
<datalist> event when something is picked
I'm working on kind of an autocomplete-like feature, and instead of rendering my own dropdown, I'm trying out < datalist > because I like using native elements for use on different devices, and ...
0
votes
0
answers
88
views
HTML Datalist won't restrict to 5 or x items to be visible with a scroll
I tried to no avail to get HTML, CSS and Javascript to limit number of items in datalist, for whatever reason, it is isn't working. The list is populated by a loop on a array.
<datalist id="...
1
vote
1
answer
53
views
How to get the choice(value) out of datalist in javascript?
I am developing a probability calculator and I can't manage to get the 'value' out of the datalist. I'm very new to javascript so maybe it's very easy but I don't know how to do it yet.
I tried using ...
1
vote
1
answer
92
views
PHP - big datalist option
I have function which show 70.000 option values in webpage, is there any option to do "autosuggestion"? Now there is the problem with performance, the browswere are crashed after 2 - 3 ...
0
votes
1
answer
42
views
Get Predifined Text Option of Datalist or User Entered Text (not value)
I need to get the content (text, not value) of the datalist option selected by the user OR some other content written by the user even that content don't match with the content of any options.
And I ...
0
votes
1
answer
44
views
v-for list in dialog disappears after dialog closes
I have a dialog that contains v-navigation-drawer and a list is rendered inside.
It works fine on the first dialog open, but after closing it, it won't show the list the second time.
My navigation:
&...
0
votes
1
answer
1k
views
set and display a specific datalist option in a dynamically loaded datalist with jquery
I have a datalist that is created on the fly based on the user's selection from a group select menu. After the group is selected, the datalist is created. The datalist allows users to choose from a &...
0
votes
0
answers
45
views
Hi, I have a problem in the data list. After displaying the information, I want to get the product code by clicking on a in the data list
I still couldn't get the output from the program. I put a text in the data list to display the product ID by clicking on it, but it didn't work and only the ID of the first product is displayed.
<...
1
vote
1
answer
371
views
Getting color input name (instead of HEX) - datalist of colors
I'm trying to set up a form which takes in userame, email and favorite color of the user (datalist), and shows it back in an alert box. Everything seems to work so far, except that the color is shown ...
-1
votes
2
answers
166
views
how to use javascript to extract and show a random text from a datalist when using onclick event?
I would like that a JavaScript function could take a random sentence from a datalist in the same file, and then show it when I click on a button with an "onclick" event. I am looking for the ...
0
votes
1
answer
95
views
How to add ability to dropdown for list?
I've created list of list containing some data about countries (grouped by subregions, each country contains following data: name, capital, population and area). Now I would like to add ability to ...
0
votes
2
answers
67
views
Removing duplicate elements in a list with sets of arrays in python
I have a list[(position,id)] from the user based on the ids it chooses which I collect in data
data[(position,id)] = [(1,0),(2,0),(7,3),(8,6),(3,11),(3,11),(4,0),(5,1),(5,1),(6,2),(9,5),(10,7),(15,0),(...
2
votes
2
answers
1k
views
Selecting HTML datalist option does not trigger search event
I am developing a search engine for a website; now it's working fine and responding to input search keywords with no issues in its interaction with the (Django-based) local web server. The problem (...
0
votes
1
answer
183
views
Lookup value of a datalist for a gridview
4h
Hello everyone.
I have been pulling my hair out on this one. I can't see what I am doing wrong. Can someone please help.
I have a datalist which I pull value from a table. Then I want to pull ...
1
vote
1
answer
534
views
Dynamically load JSON into a datalist (vanilla JS)
I've been spending the past couple of days researching on W3C and SO (this being the closest issue I found to mine), to dynamically load a "static" JSON into a dynamically created datalist.
...
0
votes
1
answer
256
views
Getting just one value with 2 same text from datalist in jquery
I' am trying get just the row with one value but i getting 2 values o more values with the same text(), because the requeriment is with the text().
code for edit:
https://codepen.io/Dragonbl4ck/pen/...
0
votes
0
answers
79
views
In angular how to disable or stop the hint | search in datalist
enter image description here
enter image description here
in first image you can see only one name is coming but in other image api response showing total 5 records.
so i have to show that all 5 ...
1
vote
0
answers
289
views
How to force expand datalist?
There is an input and its datalist. If I enter 1111, a list with matching values will expand.
But if I remove any character (except the last one), then the select list collapses as if there are no ...
0
votes
1
answer
314
views
Hide value from datalist selection
I am using datalist to display a selection of choices. When showing these choices both tha value and text are displaying, like datalist is supposed to work. However, I need to hide the value from the ...
1
vote
2
answers
567
views
Display div based upon datalist selection
This has probably been asked about before, but after several hours of looking I can't seem to find anything.
I have a datalist which is meant to display a div based on your selection of the datalist. ...
0
votes
0
answers
365
views
Using datalist input with classname
Is it possible to use datalist input with classname somehow?
<input list="browsers" class="browser">
<datalist class="browsers">
<option value="...
0
votes
1
answer
39
views
Error thrown when clicking image button in datalist
I have a datalist that displays images that I want to use as buttons, so I used the image button. But when I click the image, I get an error before it even gets to the if(e.CommandName == "...
0
votes
0
answers
110
views
Dynamically Populate Linked Datalists with jQuery
I have multiple input datalist that will populate based on the input or selection in the previous datalist. It uses the jQuery load event to call a page with VBscript to pull the data from a SQL ...
0
votes
0
answers
890
views
How to limit display size of a datalist?
I have a datalist with a bunch of numbers and would like to limit the display size of the menu to 5 options, but as I understand this can't be done with html/css, so what are my options?
// ...
0
votes
1
answer
1k
views
Set default value for list in ReactJS
I'm trying to set default value to datalist using useEffect.
Tried to set it (line 16) with setSelectedEmployee(employees[0].id);
I also tried (line 64) to set default value with, no success.
value={...
2
votes
2
answers
115
views
Order DataList and trim last 4 characters
Trying to order a list of files that are sitting in a folder. I am able to display the files just fine and the links work but cannot order them by the file name while removing the last 4 characters (....
1
vote
0
answers
160
views
CodeIgniter datalist foreach option not selected in edit
In my CodeIgniter v3 project datalist option not selected in edit page.
My code:
<input class="form-control list" list="processListOptions" name="processPlaningTextList[<...
1
vote
1
answer
105
views
Dropdown data-attributes to populate into input fields on dynamically added rows
**This is the code i currently come up with I wanted to populate price and tax files from data- attributes **
<table class="table g-5 gs-0 mb-0 fw-bolder text-gray-700" id="tab_logic&...
0
votes
0
answers
14
views
Lists and Databinding between MainForm and ChildForm with Usercontrol Layover
So I have a Main Form when they click a button, a new form pops up with a user control over the form. The user control contains 2 dropdown or comboboxes that I want information in. Inside the Main ...
0
votes
2
answers
751
views
how do i add a style to a single items border in a datalist in asp.net from code behind? (i want a single border color to be different)
this what my datalist looks like this is the datalist
this is the code behind
I tried to cast the table of the HTML as a web control table and then access it style from code behind and change it like ...
0
votes
1
answer
654
views
click event for dynamic button inside a datalist
I have a DataList and bind it corrertly.
SqlCommand cmd = new SqlCommand(str_cmd, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
dtlst_periodicTask....
0
votes
0
answers
102
views
HTML5 Datalist arrow not hiding on mobile browsers
I am trying to hide the native arrow for the datalist because I am using a custom chevron. Doing this works on Desktop Browsers:
input::-webkit-calendar-picker-indicator {
visibility: hidden;
...
0
votes
1
answer
355
views
Why data is not displayed on my asp.net webpage?
I am developing Canteen Management System where I am displaying menuList from Database using gridview like given below.. ( this is Menu.aspx page)
<asp:DataList ID="DataList1" runat="...
0
votes
1
answer
223
views
Changing an asp:Panels CSS Class that is within a DataList ItemTemplate
I am trying to create a DataList with multiple panels, and I want to change the Panel's CSS based on the returning results of the DataList. I am having a problem with not being able to call the ID on ...
0
votes
1
answer
2k
views
ASP.NET Get DataList input in code behind
Having researched similar questions, none seem to deal with my specific issue. I have a simple case of an aspx DataList with text boxes where the user is to input data and then submit the page. I ...
0
votes
1
answer
959
views
Display data from two database tables in DataList element - Asp.NET
I want to display data from two different database tables inside each datalist item, specifically details about a job application, and then using the ID of the application's owner to display some of ...
0
votes
0
answers
39
views
html fetched data does not appear in options for input list
I seem to be struggling with something very simple that I cannot resolve.
I have this input search bar which fetches data from an API which by itself works correctly.
For a sanity check, I have added ...
2
votes
2
answers
358
views
Javascript and HTML datalist : manage single quote
I have an issue with my HTML datalist and the javascript to manage it...
My purpose is to change the values of a HTML "select" from a datalist.
Here is my datalist :
<input class="...
1
vote
3
answers
1k
views
ReactJS: Getting ID from datalist
I'm dealing with the problem - how to get employee ID of selected item from dynamic datalist in ReactJS.
const URL = "https://jsonplaceholder.typicode.com/users";
const [employees, ...
0
votes
1
answer
92
views
value of a datalist associated to input in html
I have got a datalist associated to an input in html.
<td><label class="details" for="managerLadelId" id="managerLadelId">nom du hiérarchique</label></td>
<!--td><...
0
votes
1
answer
942
views
How to get custom value from datalist using jquery
Very simple and straight forward. I pre-populated a HTML datalist with values, on the form when I want select the custom value (data-value) and insert it into SQLServer database. This is my example ...
0
votes
2
answers
186
views
Make asp:HyperLink the list items in an asp:DataList
I have searched for a solution but something is missing and I don't know what it is. All of the code below works fine except asp:HyperLink gives me an error. I only need one
column with links for each ...