Question
Country and State picklist value Java script
We have implemented form were when US is selected the State Filed appears with US state values, likewise for Australia also, but the problem here is we are using ISO codes for State. We have State pick list as Western Australia::WA (Australia) and Washington::WA (USA) , how can we compare these values to show WA Values as in Washington when USA is selected in country . Form 2.0 can solve this problem but we are using the older form and need this to be fixed in older one. The code we used is
if (jQuery(this).attr("text") == "Washington") {
jQuery(this).attr("rel","United States");
} else {
jQuery(this).attr("rel","Australia");
}
break;
But it doesn't seem to work, would be great if you guys can help me with this.
Thanks,
CK
if (jQuery(this).attr("text") == "Washington") {
jQuery(this).attr("rel","United States");
} else {
jQuery(this).attr("rel","Australia");
}
break;
But it doesn't seem to work, would be great if you guys can help me with this.
Thanks,
CK