I have a site I\'m working on where I want to mark if a row of data has been changed. If something has been changed in that row I would mark it with a custom attribute like
Why don't you use the jQuery data capability?
Your example will be (I don't know the condition to select proper td):
$("tr td").data("isDirty", true);
take a look at documentation