aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How do i remove a item from a drop down box . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How do i remove a item from a drop down box ." Watch "How do i remove a item from a drop down box ." New topic
Author

How do i remove a item from a drop down box .

Prashanth Vijayai
Greenhorn

Joined: Jul 20, 2007
Posts: 17
How do i remove an item from a drop down box . Im using the same drop down box for two pages where in one page only 4 items should be populated whereas when the second page is loaded all five items should be displayed .

How i can remove one item from the drop down box when it is loaded itself .

How should i do this using java script.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

Moving to HTML / Javascript.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Drop Down Box = select element?

Why would you not want the server to do this? Would make more sense.

If you really want to do it with JavaScript:



Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60076
    
  65

Doing this in JavaScript is nonsense. Do it on the server before that page even gets to the browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i remove a item from a drop down box .
 
Similar Threads
JSP/JDBC problem...please help!!!!
JSP and caching...
Html drop down menu and applet issues
Dynamic Drop Down Lists.
List boxes