File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Working with a Select group and cloneNode in JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Working with a Select group and cloneNode in JavaScript" Watch "Working with a Select group and cloneNode in JavaScript" New topic
Author

Working with a Select group and cloneNode in JavaScript

curtis ashby
Greenhorn

Joined: Sep 28, 2008
Posts: 14
Hi experts,
I'm banging my head against the wall on this one and request your assistance.

I have script that creates a form from another pages form and i'm using the cloneNode method javascript.
The problem i have is that when I clone the select groups the currently selected option is lost and i am re-setting the selected option using the selectedIndex property and then writing to the new form with innerHTML. This seams to work in IE but not in Firefox/Chrome/Safari. Any suggestions?


 
Consider Paul's rocket mass heater.
 
subject: Working with a Select group and cloneNode in JavaScript