473,379 Members | 1,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Remove first two items from list box

I'm doing a HTML/Javascript project. I have a list box called 'listnew'. List items are coming from the database.
I need to remove first two elements from this list box.
Can anyone please help me?
May 12 '15 #1
2 1418
Dormilich
8,658 Expert Mod 8TB
the most logical way is to not fetch them from the database in the first place.

other than that would require us to know why these should be removed.
May 12 '15 #2
Luuk
1,047 Expert 1GB
"Can anyone please help me? "
YES

Start your browser, go to your favorite search engine
search for: "I need to remove first two elements from this list box."

Take a visit to the first link....

Now thing of WHY did the first link come back here?

It's easy, most people show the code they created themselves, and ask why they get an error after line x

Or, they created some code which deleted not the first two items of a list, but the first and the third, and they wonder how that could happen....
May 14 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: koperenkogel | last post by:
Dear cpp-ians, I am writing code for a image segmentation program. For this purpose I want to make a list (or array) of all pixels and take a random pixel out of the list. Once the pixel is...
4
by: rdi | last post by:
Why does the following NOT remove the items from the ListView? I need to remove all the items and re-build the LV based on new information. Thanks. -- RDI (remove the exclamation from...
3
by: Tony | last post by:
I have this code: Dim elementi() As String = Split(book, "pages") I have to do remove first item from array elementi ... any help? Thanks
7
by: Mike Johnson | last post by:
How do I remove a item that's been selected from a listview? I'm using Visual Basic 2005 express edition. Thanks
3
by: Beholder | last post by:
I hope that someone can help me with the following: Short background explenation: I have a shrfepoint page (newform.aspx) in a item list. On this page is a lookup column that displays a lookup...
1
by: dvestal | last post by:
I have a ListView with checkboxes. I want to remove items when the checkboxes are unchecked, but to do so yields an ArgumentOutOfRangeException. Is there an easy way to get around this? A...
2
by: =?Utf-8?B?RHJEQkY=?= | last post by:
I understand that the Value put into a DataGridViewComboBoxCell has to be a member of the Items list or an exception is thrown. I also understand that you can override that exception by handling...
10
by: errol999 | last post by:
I'm using Access 2003. I have a List Box which I populate by selecting items from a drop down Combo Box. I now want to delete from the List Box only the selected, but not necessarily sequencial...
13
by: Connect | last post by:
hi i have qusetion how to remove ongy blank items from listbox? I mean I wanna make button that only remove blank items from listbox
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.