Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Mar 1, 2016
1 parent 79f2d3b commit b9e2028
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,13 @@ $.fn.intlTelInput.loadUtils("build/js/utils.js");
You can listen for the following events on the input.

**countrychange**


```
var $input = $('#phone);
$input.intlTelInput({});
$input.on('countrychange', function(e, country) {
// Do something with country object
This is triggered when the user selects a country from the dropdown.
```js
$("#phone").on("countrychange", function(e, countryData) {
// do something with countryData
});
```

This is triggered when the user selects a country from the dropdown.
See an example here: [Country sync](http://jackocnr.com/node_modules/intl-tel-input/examples/gen/country-sync.html)


## Utilities Script
Expand Down

0 comments on commit b9e2028

Please sign in to comment.