From 9aebea3f66873c951b7bd1ee03eadf1816d781f6 Mon Sep 17 00:00:00 2001 From: oliveira131 <47257731+oliveira131@users.noreply.github.com> Date: Sat, 17 Aug 2019 16:40:43 -0300 Subject: [PATCH] Update README.md Describe intl-tel-input use. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 924debd..bd7bfbc 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,12 @@ The input and label must have the same id linked with for in label to work prope ``` +### For intl-tel-input +Make the label after input with JavaScript code, like this sample made with jQuery: +```JavaScript +$('.intl-tel-input ~ label').insertAfter('.intl-tel-input input.form-control'); +``` + ## Dependencies Works perfect with Bootstrap 4 but Bootstrap isn't required. Requires a browser compatible with [:placeholder-shown](https://caniuse.com/#feat=css-placeholder-shown) CSS pseudo-element.