what is the best approach to populate the data in cascading drop downs

Hi ,

   In Cascading drop down(based on selected country corresponding states should populate based on states cities should populate)

which is best approach to follow:


1) select the country id and pass the id to states table to get the corresponding states( here every time when i select the country i am hitting the Data base to get the states list  so data base operations are more here )


(or)


2)load all countries and states at once populate accordingly (here unnecessarily we are loading all )


is there any better approach ?

  Discussion posts and replies are publicly visible