JetFormBuilder's dedicated Phone Field (v3.6.0+) is powered by the intl-tel-input library. It automatically formats phone numbers based on the selected country code, but it has two gaps this snippet works around:
- No custom fixed placeholder. This was confirmed by Crocoblock
support (ticket #223621).
intl-tel-inputresets the placeholder on its owncountrychangeevent,