Remove first two items from list box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aishy123
    New Member
    • May 2015
    • 1

    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?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • Luuk
      Recognized Expert Top Contributor
      • Mar 2012
      • 1043

      #3
      "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....

      Comment

      Working...