Jquery ile dropdown menu yapmak. Howto dropdown menu with jquery

Paylaş.

<city name="ANKARA">   
<distr>BEYPAZARI</distr>  
 <distr>GÜDÜL</distr>  
 <distr>KAZAN</distr>  
 <distr>ÇANKAYA</distr>
 </city> <city name="İSTANBUL"> 
 <distr>EMİNÖNÜ</distr>  <distr>ÇATALCA</distr> 
 <distr>BEYOĞLU</distr>  <distr>BEYKOZ</distr>  
<distr>BEŞİKTAŞ</distr> 
</city> 

 

 

 $(xml).find('city').each(function(){     
 var city = $(this).attr("name");     
 $("<option>").text(city).appendTo("#cityList"); 
 });


 kayak - Source : http://stackoverflow.com/questions/4606911/get-subchild-value-for-a-specific-child-in-xml-via-jquery 
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)