Make it work with elements with id, classname, or neither