-
-
Save aladagemre/3f2b79a27223e8ade514 to your computer and use it in GitHub Desktop.
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> | |
<option value="9">Aydın</option> | |
<option value="10">Balıkesir</option> | |
<option value="11">Bilecik</option> | |
<option value="12">Bingöl</option> | |
<option value="13">Bitlis</option> | |
<option value="14">Bolu</option> | |
<option value="15">Burdur</option> | |
<option value="16">Bursa</option> | |
<option value="17">Çanakkale</option> | |
<option value="18">Çankırı</option> | |
<option value="19">Çorum</option> | |
<option value="20">Denizli</option> | |
<option value="21">Diyarbakır</option> | |
<option value="22">Edirne</option> | |
<option value="23">Elazığ</option> | |
<option value="24">Erzincan</option> | |
<option value="25">Erzurum</option> | |
<option value="26">Eskişehir</option> | |
<option value="27">Gaziantep</option> | |
<option value="28">Giresun</option> | |
<option value="29">Gümüşhane</option> | |
<option value="30">Hakkâri</option> | |
<option value="31">Hatay</option> | |
<option value="32">Isparta</option> | |
<option value="33">Mersin</option> | |
<option value="34">İstanbul</option> | |
<option value="35">İzmir</option> | |
<option value="36">Kars</option> | |
<option value="37">Kastamonu</option> | |
<option value="38">Kayseri</option> | |
<option value="39">Kırklareli</option> | |
<option value="40">Kırşehir</option> | |
<option value="41">Kocaeli</option> | |
<option value="42">Konya</option> | |
<option value="43">Kütahya</option> | |
<option value="44">Malatya</option> | |
<option value="45">Manisa</option> | |
<option value="46">Kahramanmaraş</option> | |
<option value="47">Mardin</option> | |
<option value="48">Muğla</option> | |
<option value="49">Muş</option> | |
<option value="50">Nevşehir</option> | |
<option value="51">Niğde</option> | |
<option value="52">Ordu</option> | |
<option value="53">Rize</option> | |
<option value="54">Sakarya</option> | |
<option value="55">Samsun</option> | |
<option value="56">Siirt</option> | |
<option value="57">Sinop</option> | |
<option value="58">Sivas</option> | |
<option value="59">Tekirdağ</option> | |
<option value="60">Tokat</option> | |
<option value="61">Trabzon</option> | |
<option value="62">Tunceli</option> | |
<option value="63">Şanlıurfa</option> | |
<option value="64">Uşak</option> | |
<option value="65">Van</option> | |
<option value="66">Yozgat</option> | |
<option value="67">Zonguldak</option> | |
<option value="68">Aksaray</option> | |
<option value="69">Bayburt</option> | |
<option value="70">Karaman</option> | |
<option value="71">Kırıkkale</option> | |
<option value="72">Batman</option> | |
<option value="73">Şırnak</option> | |
<option value="74">Bartın</option> | |
<option value="75">Ardahan</option> | |
<option value="76">Iğdır</option> | |
<option value="77">Yalova</option> | |
<option value="78">Karabük</option> | |
<option value="79">Kilis</option> | |
<option value="80">Osmaniye</option> | |
<option value="81">Düzce</option> | |
</select> |
###JavaScript il ilçe seçme kodu
<?php $sehir=array(34=>"istanbul",6=>"ankara",35=>"izmir",1=>"adana",2=>"adıyaman",3=>"afyon",4=>"ağrı",68=>"aksaray",5=>"amasya", 7=>"antalya",75=>"ardahan",8=>"artvin",9=>"aydın",10=>"balıkesir",74=>"bartın",72=>"batman",69=>"bayburt",11=>"bilecik", 12=>"bingöl",13=>"bitlis",14=>"bolu",15=>"burdur",16=>"bursa",17=>"çanakkale",18=>"çankırı",19=>"çorum",20=>"denizli", 21=>"diyarbakır",81=>"düzce",22=>"edirne",23=>"elazığ",24=>"erzincan",25=>"erzurum",26=>"eskişehir",27=>"gaziantep", 28=>"giresun",29=>"gümüşhane",30=>"hakkari",31=>"hatay",76=>"ığdır",32=>"ısparta",33=>"içel",78=>"karabük",70=>"karaman", 36=>"kars",37=>"kastamonu",38=>"kayseri",71=>"kırıkkale",39=>"kırklareli",40=>"kırşehir",79=>"kilis",41=>"kocaeli",42=>"konya", 43=>"kütahya",44=>"malatya",45=>"manisa",46=>"maraş",47=>"mardin",48=>"muğla",49=>"muş",50=>"nevşehir",51=>"niğde", 52=>"ordu",80=>"osmaniye",53=>"rize",54=>"sakarya",55=>"samsun",56=>"siirt",57=>"sinop",58=>"sivas",73=>"şırnak", 59=>"tekirdağ",60=>"tokat",61=>"trabzon",62=>"tunceli",63=>"şanlıurfa",64=>"uşak",65=>"van",77=>"yalova",66=>"yozgat", 67=>"zonguldak"); ?>
<select name="sehir" id="sehir"> <?php foreach($sehir as $key => $val){?> <option value="<?=$key;?>"><?=$val;?></option> <?php }?> </select>
<?php $link = "https://www.google.com/search?q=BURAYA";?>
sonucu php nin içinde nasıl gösterebilirim
URL'ye CURL isteği gönderin, CURL kullanımıyla ilgili İnternet üzerinden araştırma yapın, CURL size sonucu getirecektir.
Çünkü ADAMIN DİBİ olmak bunu gerektirir. Hepinizin eline sağlık.
ellerinize sağlık imece usulü 💯
hepinizin ellerine sağlık
Teşekkürler. Elinize sağlık.
Github için ilk yorumum;
Elinize sağlık hocam :)
React native alfabetik sıralaması
<Picker.Item value="Adıyaman" label="Adıyaman"/> <Picker.Item value="Afyonkarahisar" label="Afyonkarahisar"/> <Picker.Item value="Aksaray" label="Aksaray"/> <Picker.Item value="Amasya" label="Amasya"/> <Picker.Item value="Ankara" label="Ankara"/> <Picker.Item value="Antalya" label="Antalya"/> <Picker.Item value="Ardahan" label="Ardahan"/> <Picker.Item value="Artvin" label="Artvin"/> <Picker.Item value="Aydın" label="Aydın"/> <Picker.Item value="Ağrı" label="Ağrı"/> <Picker.Item value="Balıkesir" label="Balıkesir"/> <Picker.Item value="Bartın" label="Bartın"/> <Picker.Item value="Batman" label="Batman"/> <Picker.Item value="Bayburt" label="Bayburt"/> <Picker.Item value="Bilecik" label="Bilecik"/> <Picker.Item value="Bingöl" label="Bingöl"/> <Picker.Item value="Bitlis" label="Bitlis"/> <Picker.Item value="Bolu" label="Bolu"/> <Picker.Item value="Burdur" label="Burdur"/> <Picker.Item value="Bursa" label="Bursa"/> <Picker.Item value="Denizli" label="Denizli"/> <Picker.Item value="Diyarbakır" label="Diyarbakır"/> <Picker.Item value="Düzce" label="Düzce"/> <Picker.Item value="Edirne" label="Edirne"/> <Picker.Item value="Elazığ" label="Elazığ"/> <Picker.Item value="Erzincan" label="Erzincan"/> <Picker.Item value="Erzurum" label="Erzurum"/> <Picker.Item value="Eskişehir" label="Eskişehir"/> <Picker.Item value="Gaziantep" label="Gaziantep"/> <Picker.Item value="Giresun" label="Giresun"/> <Picker.Item value="Gümüşhane" label="Gümüşhane"/> <Picker.Item value="Hakkâri" label="Hakkâri"/> <Picker.Item value="Hatay" label="Hatay"/> <Picker.Item value="Isparta" label="Isparta"/> <Picker.Item value="Iğdır" label="Iğdır"/> <Picker.Item value="Kahramanmaraş" label="Kahramanmaraş"/> <Picker.Item value="Karabük" label="Karabük"/> <Picker.Item value="Karaman" label="Karaman"/> <Picker.Item value="Kars" label="Kars"/> <Picker.Item value="Kastamonu" label="Kastamonu"/> <Picker.Item value="Kayseri" label="Kayseri"/> <Picker.Item value="Kilis" label="Kilis"/> <Picker.Item value="Kocaeli" label="Kocaeli"/> <Picker.Item value="Konya" label="Konya"/> <Picker.Item value="Kütahya" label="Kütahya"/> <Picker.Item value="Kırklareli" label="Kırklareli"/> <Picker.Item value="Kırıkkale" label="Kırıkkale"/> <Picker.Item value="Kırşehir" label="Kırşehir"/> <Picker.Item value="Malatya" label="Malatya"/> <Picker.Item value="Manisa" label="Manisa"/> <Picker.Item value="Mardin" label="Mardin"/> <Picker.Item value="Mersin" label="Mersin"/> <Picker.Item value="Muğla" label="Muğla"/> <Picker.Item value="Muş" label="Muş"/> <Picker.Item value="Nevşehir" label="Nevşehir"/> <Picker.Item value="Niğde" label="Niğde"/> <Picker.Item value="Ordu" label="Ordu"/> <Picker.Item value="Osmaniye" label="Osmaniye"/> <Picker.Item value="Rize" label="Rize"/> <Picker.Item value="Sakarya" label="Sakarya"/> <Picker.Item value="Samsun" label="Samsun"/> <Picker.Item value="Siirt" label="Siirt"/> <Picker.Item value="Sinop" label="Sinop"/> <Picker.Item value="Sivas" label="Sivas"/> <Picker.Item value="Tekirdağ" label="Tekirdağ"/> <Picker.Item value="Tokat" label="Tokat"/> <Picker.Item value="Trabzon" label="Trabzon"/> <Picker.Item value="Tunceli" label="Tunceli"/> <Picker.Item value="Uşak" label="Uşak"/> <Picker.Item value="Van" label="Van"/> <Picker.Item value="Yalova" label="Yalova"/> <Picker.Item value="Yozgat" label="Yozgat"/> <Picker.Item value="Zonguldak" label="Zonguldak"/> <Picker.Item value="Çanakkale" label="Çanakkale"/> <Picker.Item value="Çankırı" label="Çankırı"/> <Picker.Item value="Çorum" label="Çorum"/> <Picker.Item value="İstanbul" label="İstanbul"/> <Picker.Item value="İzmir" label="İzmir"/> <Picker.Item value="Şanlıurfa" label="Şanlıurfa"/> <Picker.Item value="Şırnak" label="Şırnak"/>
AJAX ile kullanım için bir örnek de ben atayım.
ALFABETİK İL SIRASINDA
<option value="Adana" data-ekdeger="1">Adana</option>
<option value="Adıyaman" data-ekdeger="2">Adıyaman</option>
<option value="Afyonkarahisar " data-ekdeger="3">Afyonkarahisar </option>
<option value="Ağrı" data-ekdeger="4">Ağrı</option>
<option value="Aksaray" data-ekdeger="68">Aksaray</option>
<option value="Amasya" data-ekdeger="5">Amasya</option>
<option value="Ankara" data-ekdeger="6">Ankara</option>
<option value="Antalya" data-ekdeger="7">Antalya</option>
<option value="Ardahan" data-ekdeger="75">Ardahan</option>
<option value="Artvin" data-ekdeger="8">Artvin</option>
<option value="Aydın" data-ekdeger="9">Aydın</option>
<option value="Balıkesir" data-ekdeger="10">Balıkesir</option>
<option value="Bartın" data-ekdeger="74">Bartın</option>
<option value="Batman" data-ekdeger="72">Batman</option>
<option value="Bayburt" data-ekdeger="69">Bayburt</option>
<option value="Bilecik" data-ekdeger="11">Bilecik</option>
<option value="Bingöl" data-ekdeger="12">Bingöl</option>
<option value="Bitlis" data-ekdeger="13">Bitlis</option>
<option value="Bolu" data-ekdeger="14">Bolu</option>
<option value="Burdur" data-ekdeger="15">Burdur</option>
<option value="Bursa" data-ekdeger="16">Bursa</option>
<option value="Çanakkale" data-ekdeger="17">Çanakkale</option>
<option value="Çankırı" data-ekdeger="18">Çankırı</option>
<option value="Çorum" data-ekdeger="19">Çorum</option>
<option value="Denizli" data-ekdeger="20">Denizli</option>
<option value="Diyarbakır" data-ekdeger="21">Diyarbakır</option>
<option value="Düzce" data-ekdeger="81">Düzce</option>
<option value="Edirne" data-ekdeger="22">Edirne</option>
<option value="Elazığ" data-ekdeger="23">Elazığ</option>
<option value="Erzincan" data-ekdeger="24">Erzincan</option>
<option value="Erzurum" data-ekdeger="25">Erzurum</option>
<option value="Eskişehir" data-ekdeger="26">Eskişehir</option>
<option value="Gaziantep" data-ekdeger="27">Gaziantep</option>
<option value="Giresun" data-ekdeger="28">Giresun</option>
<option value="Gümüşhane" data-ekdeger="29">Gümüşhane</option>
<option value="Hakkari" data-ekdeger="30">Hakkari</option>
<option value="Hatay" data-ekdeger="31">Hatay</option>
<option value="Iğdır" data-ekdeger="76">Iğdır</option>
<option value="Isparta" data-ekdeger="32">Isparta</option>
<option value="İstanbul" data-ekdeger="34">İstanbul</option>
<option value="İzmir" data-ekdeger="35">İzmir</option>
<option value="Kahramanmaraş" data-ekdeger="46">Kahramanmaraş</option>
<option value="Karabük" data-ekdeger="78">Karabük</option>
<option value="Karaman" data-ekdeger="70">Karaman</option>
<option value="Kars" data-ekdeger="36">Kars</option>
<option value="Kastamonu" data-ekdeger="37">Kastamonu</option>
<option value="Kayseri" data-ekdeger="38">Kayseri</option>
<option value="Kırıkkale" data-ekdeger="71">Kırıkkale</option>
<option value="Kırklareli" data-ekdeger="39">Kırklareli</option>
<option value="Kırşehir" data-ekdeger="40">Kırşehir</option>
<option value="Kilis" data-ekdeger="79">Kilis</option>
<option value="Kocaeli" data-ekdeger="41">Kocaeli</option>
<option value="Konya" data-ekdeger="42">Konya</option>
<option value="Kütahya" data-ekdeger="43">Kütahya</option>
<option value="Malatya" data-ekdeger="44">Malatya</option>
<option value="Manisa" data-ekdeger="45">Manisa</option>
<option value="Mardin" data-ekdeger="47">Mardin</option>
<option value="Mersin" data-ekdeger="33">Mersin</option>
<option value="Muğla" data-ekdeger="48">Muğla</option>
<option value="Muş" data-ekdeger="49">Muş</option>
<option value="Nevşehir" data-ekdeger="50">Nevşehir</option>
<option value="Niğde" data-ekdeger="51">Niğde</option>
<option value="Ordu" data-ekdeger="52">Ordu</option>
<option value="Osmaniye" data-ekdeger="80">Osmaniye</option>
<option value="Rize" data-ekdeger="53">Rize</option>
<option value="Sakarya" data-ekdeger="54">Sakarya</option>
<option value="Samsun" data-ekdeger="55">Samsun</option>
<option value="Siirt" data-ekdeger="56">Siirt</option>
<option value="Sinop" data-ekdeger="57">Sinop</option>
<option value="Sivas" data-ekdeger="58">Sivas</option>
<option value="Şanlıurfa" data-ekdeger="63">Şanlıurfa</option>
<option value="Şırnak" data-ekdeger="73">Şırnak</option>
<option value="Tekirdağ" data-ekdeger="59">Tekirdağ</option>
<option value="Tokat" data-ekdeger="60">Tokat</option>
<option value="Trabzon" data-ekdeger="61">Trabzon</option>
<option value="Tunceli" data-ekdeger="62">Tunceli</option>
<option value="Uşak" data-ekdeger="64">Uşak</option>
<option value="Van" data-ekdeger="65">Van</option>
<option value="Yalova" data-ekdeger="77">Yalova</option>
<option value="Yozgat" data-ekdeger="66">Yozgat</option>
<option value="Zonguldak" data-ekdeger="67">Zonguldak</option>
PLAKA İL SIRASINDA
<option value="Adana" data-ekdeger="1">Adana</option>
<option value="Adıyaman" data-ekdeger="2">Adıyaman</option>
<option value="Afyonkarahisar " data-ekdeger="3">Afyonkarahisar </option>
<option value="Ağrı" data-ekdeger="4">Ağrı</option>
<option value="Amasya" data-ekdeger="5">Amasya</option>
<option value="Ankara" data-ekdeger="6">Ankara</option>
<option value="Antalya" data-ekdeger="7">Antalya</option>
<option value="Artvin" data-ekdeger="8">Artvin</option>
<option value="Aydın" data-ekdeger="9">Aydın</option>
<option value="Balıkesir" data-ekdeger="10">Balıkesir</option>
<option value="Bilecik" data-ekdeger="11">Bilecik</option>
<option value="Bingöl" data-ekdeger="12">Bingöl</option>
<option value="Bitlis" data-ekdeger="13">Bitlis</option>
<option value="Bolu" data-ekdeger="14">Bolu</option>
<option value="Burdur" data-ekdeger="15">Burdur</option>
<option value="Bursa" data-ekdeger="16">Bursa</option>
<option value="Çanakkale" data-ekdeger="17">Çanakkale</option>
<option value="Çankırı" data-ekdeger="18">Çankırı</option>
<option value="Çorum" data-ekdeger="19">Çorum</option>
<option value="Denizli" data-ekdeger="20">Denizli</option>
<option value="Diyarbakır" data-ekdeger="21">Diyarbakır</option>
<option value="Edirne" data-ekdeger="22">Edirne</option>
<option value="Elazığ" data-ekdeger="23">Elazığ</option>
<option value="Erzincan" data-ekdeger="24">Erzincan</option>
<option value="Erzurum" data-ekdeger="25">Erzurum</option>
<option value="Eskişehir" data-ekdeger="26">Eskişehir</option>
<option value="Gaziantep" data-ekdeger="27">Gaziantep</option>
<option value="Giresun" data-ekdeger="28">Giresun</option>
<option value="Gümüşhane" data-ekdeger="29">Gümüşhane</option>
<option value="Hakkari" data-ekdeger="30">Hakkari</option>
<option value="Hatay" data-ekdeger="31">Hatay</option>
<option value="Isparta" data-ekdeger="32">Isparta</option>
<option value="Mersin" data-ekdeger="33">Mersin</option>
<option value="İstanbul" data-ekdeger="34">İstanbul</option>
<option value="İzmir" data-ekdeger="35">İzmir</option>
<option value="Kars" data-ekdeger="36">Kars</option>
<option value="Kastamonu" data-ekdeger="37">Kastamonu</option>
<option value="Kayseri" data-ekdeger="38">Kayseri</option>
<option value="Kırklareli" data-ekdeger="39">Kırklareli</option>
<option value="Kırşehir" data-ekdeger="40">Kırşehir</option>
<option value="Kocaeli" data-ekdeger="41">Kocaeli</option>
<option value="Konya" data-ekdeger="42">Konya</option>
<option value="Kütahya" data-ekdeger="43">Kütahya</option>
<option value="Malatya" data-ekdeger="44">Malatya</option>
<option value="Manisa" data-ekdeger="45">Manisa</option>
<option value="Kahramanmaraş" data-ekdeger="46">Kahramanmaraş</option>
<option value="Mardin" data-ekdeger="47">Mardin</option>
<option value="Muğla" data-ekdeger="48">Muğla</option>
<option value="Muş" data-ekdeger="49">Muş</option>
<option value="Nevşehir" data-ekdeger="50">Nevşehir</option>
<option value="Niğde" data-ekdeger="51">Niğde</option>
<option value="Ordu" data-ekdeger="52">Ordu</option>
<option value="Rize" data-ekdeger="53">Rize</option>
<option value="Sakarya" data-ekdeger="54">Sakarya</option>
<option value="Samsun" data-ekdeger="55">Samsun</option>
<option value="Siirt" data-ekdeger="56">Siirt</option>
<option value="Sinop" data-ekdeger="57">Sinop</option>
<option value="Sivas" data-ekdeger="58">Sivas</option>
<option value="Tekirdağ" data-ekdeger="59">Tekirdağ</option>
<option value="Tokat" data-ekdeger="60">Tokat</option>
<option value="Trabzon" data-ekdeger="61">Trabzon</option>
<option value="Tunceli" data-ekdeger="62">Tunceli</option>
<option value="Şanlıurfa" data-ekdeger="63">Şanlıurfa</option>
<option value="Uşak" data-ekdeger="64">Uşak</option>
<option value="Van" data-ekdeger="65">Van</option>
<option value="Yozgat" data-ekdeger="66">Yozgat</option>
<option value="Zonguldak" data-ekdeger="67">Zonguldak</option>
<option value="Aksaray" data-ekdeger="68">Aksaray</option>
<option value="Bayburt" data-ekdeger="69">Bayburt</option>
<option value="Karaman" data-ekdeger="70">Karaman</option>
<option value="Kırıkkale" data-ekdeger="71">Kırıkkale</option>
<option value="Batman" data-ekdeger="72">Batman</option>
<option value="Şırnak" data-ekdeger="73">Şırnak</option>
<option value="Bartın" data-ekdeger="74">Bartın</option>
<option value="Ardahan" data-ekdeger="75">Ardahan</option>
<option value="Iğdır" data-ekdeger="76">Iğdır</option>
<option value="Yalova" data-ekdeger="77">Yalova</option>
<option value="Karabük" data-ekdeger="78">Karabük</option>
<option value="Kilis" data-ekdeger="79">Kilis</option>
<option value="Osmaniye" data-ekdeger="80">Osmaniye</option>
<option value="Düzce" data-ekdeger="81">Düzce</option>
Adana Adıyaman Afyonkarahisar Ağrı Aksaray Amasya Ankara Antalya Ardahan Artvin Aydın Balıkesir Bartın Batman Bayburt Bilecik Bingöl Bitlis Bolu Burdur Bursa Çanakkale Çankırı Çorum Denizli Diyarbakır Düzce Edirne Elazığ Erzincan Erzurum Eskişehir Gaziantep Giresun Gümüşhane Hakkari Hatay Iğdır Isparta İstanbul İzmir Kahramanmaraş Karabük Karaman Kars Kastamonu Kayseri Kırıkkale Kırklareli Kırşehir Kilis Kocaeli Konya Kütahya Malatya Manisa Mardin Mersin Muğla Muş Nevşehir Niğde Ordu Osmaniye Rize Sakarya Samsun Siirt Sinop Sivas Şanlıurfa Şırnak Tekirdağ Tokat Trabzon Tunceli Uşak Van Yalova Yozgat Zonguldak
SAGOLASIN
Çok teşekkürler
Çok sağol :D
Teşekkür ederim..
Mükemmel bir paylaşım olmuş bunda emeği geçen herkesin ellerine sağlık
JSON array olarak ihtiyacı olan varsa;
[
{ id: 1, name: "Adana"},
{ id: 2, name: "Adıyaman"},
{ id: 3, name: "Afyonkarahisar"},
{ id: 4, name: "Ağrı"},
{ id: 5, name: "Amasya"},
{ id: 6, name: "Ankara"},
{ id: 7, name: "Antalya"},
{ id: 8, name: "Artvin"},
{ id: 9, name: "Aydın"},
{ id: 10, name: "Balıkesir"},
{ id: 11, name: "Bilecik"},
{ id: 12, name: "Bingöl"},
{ id: 13, name: "Bitlis"},
{ id: 14, name: "Bolu"},
{ id: 15, name: "Burdur"},
{ id: 16, name: "Bursa"},
{ id: 17, name: "Çanakkale"},
{ id: 18, name: "Çankırı"},
{ id: 19, name: "Çorum"},
{ id: 20, name: "Denizli"},
{ id: 21, name: "Diyarbakir"},
{ id: 22, name: "Edirne"},
{ id: 23, name: "Elazığ"},
{ id: 24, name: "Erzincan"},
{ id: 25, name: "Erzurum"},
{ id: 26, name: "Eskişehir"},
{ id: 27, name: "Gaziantep"},
{ id: 28, name: "Giresun"},
{ id: 29, name: "Gümüşhane"},
{ id: 30, name: "Hakkari"},
{ id: 31, name: "Hatay"},
{ id: 32, name: "Isparta"},
{ id: 33, name: "Mersin"},
{ id: 34, name: "İstanbul"},
{ id: 35, name: "İzmir"},
{ id: 36, name: "Kars"},
{ id: 37, name: "Kastamonu"},
{ id: 38, name: "Kayseri"},
{ id: 39, name: "Kırklareli"},
{ id: 40, name: "Kırşehir"},
{ id: 41, name: "Kocaeli"},
{ id: 42, name: "Konya"},
{ id: 43, name: "Kütahya"},
{ id: 44, name: "Malatya"},
{ id: 45, name: "Manisa"},
{ id: 46, name: "Kahramanmaraş"},
{ id: 47, name: "Mardin"},
{ id: 48, name: "Muğla"},
{ id: 49, name: "Muş"},
{ id: 50, name: "Nevşehir"},
{ id: 51, name: "Niğde"},
{ id: 52, name: "Ordu"},
{ id: 53, name: "Rize"},
{ id: 54, name: "Sakarya"},
{ id: 55, name: "Samsun"},
{ id: 56, name: "Siirt"},
{ id: 57, name: "Sinop"},
{ id: 58, name: "Sivas"},
{ id: 59, name: "Tekirdağ"},
{ id: 60, name: "Tokat"},
{ id: 61, name: "Trabzon"},
{ id: 62, name: "Tunceli"},
{ id: 63, name: "Şanlıurfa"},
{ id: 64, name: "Uşak"},
{ id: 65, name: "Van"},
{ id: 66, name: "Yozgat"},
{ id: 67, name: "Zonguldak"},
{ id: 68, name: "Aksaray"},
{ id: 69, name: "Bayburt"},
{ id: 70, name: "Karaman"},
{ id: 71, name: "Kırıkkale"},
{ id: 72, name: "Batman"},
{ id: 73, name: "Şırnak"},
{ id: 74, name: "Bartın"},
{ id: 75, name: "Ardahan"},
{ id: 76, name: "Iğdır"},
{ id: 77, name: "Yalova"},
{ id: 78, name: "Karabük"},
{ id: 79, name: "Kilis"},
{ id: 80, name: "Osmaniye"},
{ id: 81, name: "Düzce"}
]
büyük kolaylık
Beyler çok sağolun harikasınız yeminle
JSON olarak koymuşlar bir de, siz ne delikanlı adamsınız ya
thank you
İl ve illerin ilçelerini JSON olarak almak isteyenler için tek tek elimlen yaptım :)
https://github.com/kahramanX/araba-kiralama-app/blob/main/public/api/il-api.js
Mükemmel bir GİST!!!
Teşekkürler +++
Teşekkürler.
keşke amelelik yapmadan önce görseydim
Emeği geçen herkese çok teşekkürler.
:)
Teşekkürler
Teşekkürler
JavaScript il ilçe seçme kodu