Changed click event to a delegate event

This plugin wouldn't work on ACF Repeaters or Flexible Content Fields because the elements were not present when the event was bound. Changed to a delegate event to fix this