add option to add unsaved class to parent element

sometimes it is nessacarry to mark the parent element 
(ex. a table row) as unsaved. So added an option to do so.