You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
658 B
JavaScript
25 lines
658 B
JavaScript
// JavaScript Document
|
|
$(function(){
|
|
$("#Nationality").focus(function(){
|
|
$(".getCountryDiv").show();
|
|
});
|
|
//Cancel
|
|
$(".getCountryDiv > p > a").click(function(){
|
|
$(".getCountryDiv").hide();
|
|
});
|
|
$("#getCountry li").click(function(){
|
|
$("#Nationality").val($(this).text());
|
|
$("#getCountry").hide();
|
|
});
|
|
$("#Nationality").keyup(function(){
|
|
var w = $(this).val();
|
|
var ajax_url = "/include/ajax-country.asp?w="+w;
|
|
postget(ajax_url,"getCountry");
|
|
});
|
|
});
|
|
function prassCountryName(StrCountry,NationalityInput){
|
|
$("#"+NationalityInput).val(StrCountry);
|
|
$("#getCountry").hide();
|
|
}
|
|
function CancelDiv(strDiv){$("#getCountry").hide();}
|