• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Prashanth Vijayai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to HTML / Javascript.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doing this in JavaScript is nonsense. Do it on the server before that page even gets to the browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic