Guys i have a little problem , huge for me , so that is why i have to ask you …
Anyway problem is , i want to copy table row from one table and add it to another table , but before i add it to another table i need to remove all of its events , i used google allot but its not helping me
var $UserRow = $(Final).closest('tr');
$('td', $UserRow).each(function () {
$(this).onclick = null;
});
$UserRow.clone().appendTo($('#UserTicket'));
This is code so far , i got UserRow and all ‘td’s inside of it just how to remove all of its events?
Since they’re not part of jQuery’s event system, there’s no reason to create a jQuery object.
You need to clear the native DOM element:
I’m not sure if the handlers will be recreated since you used event attributes, so you may want to clear that too.