Using appropriate class names on your buttons would remove the need for this ID system (which would need to be changed if you ever added new elements or buttons on todo items).