Hi Shripad,
write this code on change event of states dropdown onchange
Code:
var states_c = document.getElementById('states_c');
var countries_c = document.getElementById('countries_c');
for(var i = states_c.options.length-1; i >= 0; i--)
{
if(states_c.value=='India')
{
if((countries_c.options[i].value).indexOf("india") != -1)
{
states_c.remove(i);
}
}
} note: make sure that whenever you are adding states in states dropdown append suffix as country name in small... i.e. india_maharahtra and Display member as Maharashtra...
ATA JAR NAHI AAL TAR BAGH...MI KAHICH SANGNAR NAHI YAPEKSHA JAST... :x
Bookmarks