When using int-tel-input jQuery plugin, one sometimes needs to reset the placeholder to default. Is there a method like :
$('input').intlTelInput('setPlaceholder', 'myDefaultPlaceholder' );
which should be called after :
$('input').intlTelInput('setCountry', 'myDefaultCountry' );
$('input').intlTelInput('setPlaceholderNumberType', 'MOBILE' );
The workaround I think of is :
$('input').val( "" );
$('input').attr( "placeholder", "defaultPlaceholder" );
$('input').intlTelInput('setCountry', 'myDefaultCountry' );