设置国家,州,城市的默认值 [英] set default value for country,state,city
本文介绍了设置国家,州,城市的默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
这里我完成了Populate国家自动加载状态并自动加载城市。 但我需要默认值Country-India,State-delhi如何设置默认值。我使用jquery.Kindly阅读并回答我。
推荐答案
我对你的要求不是很清楚。
我猜你的要求和你是否在谈论abt下拉列表尝试这样的事情。
Hi,
I'm not very clear with your requirement.
I'm guessing your requirement and if u r talking abt a dropdown list try something like this.
(#country)。val( 印度);
("#country").val("India");
在页面加载时使用此选项。使用选择更改事件来选择其他值。
好运
use this while page is loading.later use selection change event to select other values.
Good Luck
尝试如下
try like below
<script>
这篇关于设置国家,州,城市的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文