wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Clone Node Problems in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Clone Node Problems in IE" Watch "Clone Node Problems in IE" New topic

Clone Node Problems in IE

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124

I am cloning an Select Box which has an Onchange function associated with it. This function takes an input parameter - id. It clones sucessfully, but onChange function is not working for the Cloned node. The same script works in FireFox but not in IE. I am trying to fix this problem for more 1 day. But couldn't. Can you provide some suggesstions to fix this issue. I am attaching test to simulate the problem. Thanks in Advance.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376



clonedNode.onchange = function(){alert(this.id); };

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Thanks a lot. That worked out.

jQuery in Action, 2nd edition
subject: Clone Node Problems in IE
Similar Threads
Multiple Select box Problem
create a input text field
cant display the table
retreive selected value of list box
Issue with displaying data back on the page