473,396 Members | 2,010 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,396 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 1420
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.