Or do i have to do something like:
$( "#show_popup2").parent("td").html("HTML with the whole input with the onclick/onchange properties"); Which i think It's an ugly hack.. What do you think? is this normal? Thanks a lot! Camilo On Nov 7, 2:45 pm, camilo_u <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I just finished a script to duplicate rows of a table using jQuery, > everything works fine on Firefox, and duplicating also work on IE7, > but when i try to add a new function to the newly added item on the > onClick or onChange it does not work, i have tried adding the function > in the following ways: > > After adding the item to the DOM: > $("#show_popup2").attr( { "ONCLICK" : "alert('This is a Test')" } ); > > And: > > $( "#show_popup2" ).click( function () { alert("Test 2"); }); > > Before Adding the item to the DOM: > $( "#show_popup"+ intCurrentRowId , clonedRow ).attr( "onclick", > "someJSfunction( this )" ); > > clonedRow is the row i just cloned using the clone method > > Everything works on Firefox, all of the 3 methods described above, but > it does not work on IE7, I'm using jquery-1.2.1.min.js > > Is this a known issue on IE7? how can i add a onchange onclick, or any > other of this kind of methods in jQuery that works on IE7 and IE6? > > Thanks a lot for your help! > > Camilo