我已经在我的ASP.NET核心MVC网站上创建了一个注册表,我要求用户提供邮政编码以及其他用户信息。public class RegisterUser public string FirstName { get; set; } public string BirthDate { get; set; }
public string EmailAddress { get
当他们在country select中选择一个国家时,会使用AJAX将该国家的州填充到州输入(“下拉菜单”)中。当他们选择一个州时,它使用AJAX用该州的城市填充cities输入(“下拉菜单”)。世界上有如此多的州和城市,以至于州和城市的mySQL表将根据用户的输入进行填充。下面是我尝试将国家和州的输入链接在一起的尝试:
//get id of country selected, AJAX to database and return an array of it