remove attributes from containing div on inputs