Hello again people! Hope everyone is well! I have another JS question for you, hope you could help me out?
I'm currently working on code to remove and add rows in a table... But the rows I want to remove and then insert again into the table has a style, an onclick event, a few other attributes...
Is there a way of doing a straight copy of the row that is getting deleted? So when it comes to inserting it again, it will retain all the same attributes, style and events?
At the moment, I'm cycling through the cells in the row, copying the data within each cell, getAttribute stuff... But surely there maybe a simple way? I know of the moveRow JS method - but this seems IE only (probably the only good thing that IE has! haha)
Many thanks for any help people... Really hope I can get good enough so I can start helping people back! Cheers... (: