An input that automatically determines the country of an entered phone. Using jQuery framework.

jQuery input screenshot

Live demo

installero.com/jquery_phone_input

Installation & usage

<link href="jquery_phone_input" media="screen" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
<script src="country_codes.js" type="text/javascript"></script>
<script src="jquery_phone_input.js" type="text/javascript"></script>
...
<input type="text" class="jquery-phone-input" data-default_code="+7" name="phone"/>