File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Setting the values in Combo using DOM objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Setting the values in Combo using DOM objects" Watch "Setting the values in Combo using DOM objects" New topic
Author

Setting the values in Combo using DOM objects

Krishna Mudda
Greenhorn

Joined: Jun 20, 2001
Posts: 10
Hi Mapraputa,
I'm creating a row dynamically using DOM objects. I have one row always with all properties and attributes set and simply I need to replicate that row. I have a drop-down combo in one cell with hard-coded options in it and the same is to be repeated in the newly created Combo...
var currText = document.createElement("select");
currText.setAttribute("name","cmbValueType"+(j+1));
currText.setAttribute("size",1);
Let me know the possibilities to attach the options like '=', '<', '>' etc. to the drop down.

------------------
 
 
subject: Setting the values in Combo using DOM objects
 
Threads others viewed
Call JSP function from onchange event
Pre-select collection of options (drop-downs)
How to display multiple selection options
Dates
Java Script Drop-down option deletion but little bit different
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture