Add onClick event to every field.